Hi,
Got in situation, when I get my vlans lose their IP addreses after I execute the [cmd=]/etc/rc.d/netif restart && /etc/rc.d/routing restart[/cmd] command. I've got some vlans configured in /etc/rc.conf.
after the netif restart all of them are loosing their IP addresses:
Any ideas to solve this?
UPD:
Seems, like the netif script doesn't destroy the vlan interfaces before revoking them. If I destroy vlans manually and then revoke the netif script, it creates those vlans.
Any patch somewhere there?
UPD:
as a simple workaround one could use this line (or create simple sh script)
[CMD=]/etc/rc.d/netif restart && /etc/rc.d/netif clonedown && /etc/rc.d/netif cloneup && /etc/rc.d/routing restart[/CMD]
Got in situation, when I get my vlans lose their IP addreses after I execute the [cmd=]/etc/rc.d/netif restart && /etc/rc.d/routing restart[/cmd] command. I've got some vlans configured in /etc/rc.conf.
Code:
ifconfig_igb0="up"
cloned_interfaces="vlan5 vlan20 vlan25 vlan1110"
ifconfig_vlan5="inet 10.128.50.1 netmask 255.255.255.0 vlan 5 vlandev igb0"
ifconfig_vlan1110="inet 192.168.250.1 netmask 255.255.255.0 vlan 1110 vlandev igb0"
ifconfig_vlan20="inet 192.168.251.1 netmask 255.255.255.0 vlan 20 vlandev igb0"
ifconfig_vlan25="inet 192.168.255.253 netmask 255.255.255.252 vlan 25 vlandev igb0"
after the netif restart all of them are loosing their IP addresses:
Code:
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=1bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4>
ether 98:4b:e1:64:25:06
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=3<RXCSUM,TXCSUM>
ether 98:4b:e1:64:25:06
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
vlan: 5 parent interface: igb0
vlan20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=3<RXCSUM,TXCSUM>
ether 98:4b:e1:64:25:06
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
vlan: 20 parent interface: igb0
vlan25: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=3<RXCSUM,TXCSUM>
ether 98:4b:e1:64:25:06
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
vlan: 25 parent interface: igb0
vlan1110: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=3<RXCSUM,TXCSUM>
ether 98:4b:e1:64:25:06
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
vlan: 1110 parent interface: igb0
Any ideas to solve this?
UPD:
Code:
ifconfig: create: bad value
ifconfig: create: bad value
ifconfig: create: bad value
ifconfig: create: bad value
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
Seems, like the netif script doesn't destroy the vlan interfaces before revoking them. If I destroy vlans manually and then revoke the netif script, it creates those vlans.
Any patch somewhere there?
UPD:
as a simple workaround one could use this line (or create simple sh script)
[CMD=]/etc/rc.d/netif restart && /etc/rc.d/netif clonedown && /etc/rc.d/netif cloneup && /etc/rc.d/routing restart[/CMD]