Tema: Re: Bonding'as + Vlan'ai
Autorius: Pukuotukas
Data: 2008-04-29 11:06:48
Nu VLAN=yes pas mane sudeta. Vlaninius interface'us as uzvadinau vlan11 
ir vlan21.

[Ns1-auth][~]# ls -la /etc/sysconfig/network-scripts/
total 444
drwxr-xr-x  2 root root  4096 Apr 28 17:11 .
drwxr-xr-x 10 root root  4096 Apr 28 16:07 ..
-rw-r--r--  1 root root    47 Apr 28 15:58 ifcfg-bond0
-rw-r--r--  3 root root   161 Apr 28 15:47 ifcfg-eth0
-rw-r--r--  3 root root    84 Apr 28 15:50 ifcfg-eth1
-rw-r--r--  3 root root   143 Apr 28 15:54 ifcfg-eth2
-rw-r--r--  3 root root   143 Apr 28 15:55 ifcfg-eth3
-rw-r--r--  1 root root   254 Jun 21  2001 ifcfg-lo
-rw-r--r--  1 root root   155 Apr 28 16:02 ifcfg-vlan11
-rw-r--r--  1 root root   156 Apr 28 16:11 ifcfg-vlan21

ifcfg-vlan11 konfigas atrodo sitaip.

VLAN=yes
VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD
DEVICE=vlan11
PHYSDEV=bond0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.0.1
NETMASK=255.255.255.0

Pagal pavyzdzius turetu buti sitaip kaip ir gerai.
Ar butinai reikia sukurti dar viena cfg? toki kaip kad tavo apacioje 
rodytas? Ar isvis negalima pavadinti vlan11? o reikia butinai bond0.11?


mr wrote:
> 
>> Iskilo poreikis ant dvieju tinklo interface'u pasikelti bondinga. Ir 
>> ant jo pasikelti vlaninius interface'us. OS CentOS 5.1. Bondingas 
>> susideda graziai, vlaniniai interface'ai irgi susideda. Pirma karta 
>> perkraunant tinklo nustatymus su service network restart, vlanus 
>> graziai priregistruoja i /proc/net/vlan/config, bet tinklo nustatymu 
>> (IP/NETMASK) vlaniniams interface'ams nesudeda. Jei rankom pridedu per 
>> ifconfig bond0.11 192.168.0.1 netmask 255.255.255.0 viskas tvarkoje. 
> 
> # fgrep VLAN /etc/sysconfig/network
> VLAN=yes
> 
> # cat /etc/sysconfig/network-scripts/ifcfg-bond0.222 DEVICE=bond0.222
> IPADDR=192.168.10.1
> NETMASK=255.255.255.0
> ONBOOT=yes
> BOOTPROTO=static
> USERCTL=no
> 
>  Ir viskas veikia.
> 
>  m.
>