Re: [OBORONA-SPAM] vlan
Slava Astashonok <sla@0n.ru> writes:
>> auto eth0.3
>> iface eth0.3 inet static vlan_raw_device eth0
> ^^^^^^^^^^^^^^^^^^^^^^^^^
> Это откуда? Вроде, ни в woody, ни в sarge такого нет. Приходится
> делать так (что не совсем корректно):
>
> auto eth0
> iface eth0 inet manual
> up /sbin/ifconfig eth0 up
> pre-up (/sbin/vconfig set_name_type VLAN_PLUS_VID_NO_PAD) >/dev/null
>
> ...
> auto vlan2
> iface vlan2 inet static
> address 192.168.200.6
> netmask 255.255.255.0
> network 192.168.200.0
> broadcast 192.168.200.255
> pre-up (/sbin/vconfig add eth0 2 && /sbin/vconfig set_flag
> vlan2 1 0) >/dev/null
> post-down /sbin/vconfig rem vlan2 >/dev/null
Можно проще. В woody:
auto eth0
iface eth0 inet static
address 10.3.0.254
netmask 255.255.255.0
network 10.3.0.0
broadcast 10.3.0.255
up /sbin/vconfig add eth0 101
down /sbin/vconfig rem eth0.101
auto eth0.101
iface eth0.101 inet static
address 10.3.1.254
netmask 255.255.255.0
network 10.3.1.0
broadcast 10.3.1.255
--
Sleeping is a bad substitute to coffeine...
Reply to: