FreeBSD 9.0-RC3 is looking good, but I'm still encountering two problems. Firstly, when I try to configure VLANs in /etc/rc.conf, I'm getting errors. For example, if I use vlans_re0="1 2" ip_addrs_re0_1="192.168.0.1-4/16" ip_addrs_re0_2="10.0.0.0/24" to create two VLANs on the interface re0, I get error messages saying that "create" commands (presumably using ifconfig) have failed. The interfaces SEEM to be configured correctly, but the messages -- which must be coming from scripts called by /etc/netstart -- are troubling. Secondly, there's still some strangeness in the sc terminal emulation. When I run jove, the status line at the bottom of the screen isn't entirely in reverse video as it should be. Only parts of it are, and the highlighting changes -- seemingly at random -- as I work. Neither of these is likely to be a showstopper (so long as the first won't cause me networking problems I haven't observed yet), but both are probably worth looking into. --Brett Glass
Brett Glass schreef:> The interfaces SEEM to be configured correctly, but the messages -- > which must be coming from scripts called by /etc/netstart -- are > troubling.Same thing happens with lagg0 If i use this config, after a reboot all is fine ifconfig_em0="up" ifconfig_em1="up" cloned_interfaces="lagg0" ifconfig_lagg0="laggproto lacp laggport em0 laggport em1 192.168.100.1/24" After a /etc/netstart, i get the following: ifconfig: create: bad value. devd already running? (pid=1767). Setting hostuuid: 9abf4e13-9a77-b31d-9a77-b31d9fbfee13. Setting hostid: 0xf505f6a8. ifconfig: create: bad value ifconfig: SIOCSLAGGPORT: Device busy Starting Network: lo0 em0 em1 bge0 pflog0 pfsync0 lagg0. <snip> lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC> ether 00:1b:21:d4:77:fb inet 192.168.100.1 netmask 0xffffff00 broadcast 192.168.100.255 inet6 fe80::21b:21ff:fed4:77fb%lagg0 prefixlen 64 scopeid 0xf nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect status: active laggproto lacp laggport: em1 flags=0<> laggport: em0 flags=0<> add net default: gateway 192.168.1.254 To get rid off the bad value notice, i need the following in /etc/rc.conf comment cloned_interfaces and add create to ifconfig. ifconfig_em0="up" ifconfig_em1="up" #cloned_interfaces="lagg0" ifconfig_lagg0="create laggproto lacp laggport em0 laggport em1 192.168.100.1/24" This way no error, but i do not know if the lagg interface works that way! I got some issues with the setting the ipaddress and so on, i do not remeber it exactly! it happend last week. The machine was a production machine, and can not be offline for too long. So i changed things back to the first config and rebooted the machine. That way everything is fine. But /etc/netstart does not works for the lagg0 interface. regards, Johan Hendriks
On 12/9/11 10:13 AM, Brett Glass wrote:> FreeBSD 9.0-RC3 is looking good, but I'm still encountering two problems. > > Firstly, when I try to configure VLANs in /etc/rc.conf, I'm getting > errors. For example, if I use > > vlans_re0="1 2" > ip_addrs_re0_1="192.168.0.1-4/16" > ip_addrs_re0_2="10.0.0.0/24" > > to create two VLANs on the interface re0, I get error messages saying > that "create" commands (presumably using ifconfig) have failed. The > interfaces SEEM to be configured correctly, but the messages -- which > must be coming from scripts called by /etc/netstart -- are troubling. > > Secondly, there's still some strangeness in the sc terminal emulation. > When I run jove, the status line at the bottom of the screen isn't > entirely in reverse video as it should be. Only parts of it are, and the > highlighting changes -- seemingly at random -- as I work. > > Neither of these is likely to be a showstopper (so long as the first > won't cause me networking problems I haven't observed yet), but both are > probably worth looking into. >I have never seen this way of configuring VLANs. Find below how I set them up on our firewalls, which works like a charm, but on 8.2. You may still want to give it a try on 9.0RC3, that might solve your problem. ### NETWORKING # Configure link aggregation ifconfig_bce0="up" ifconfig_bce1="up" ifconfig_em0="up" ifconfig_lagg0="laggproto failover laggport bce0 laggport bce1 laggport em0" cloned_interfaces="lagg0 vlan14 vlan24 vlan34 carp14 carp24 carp34" # VLAN14 - WAN ifconfig_vlan14="inet [snip] vlan 14 vlandev lagg0 up" # VLAN24 - DMZ ifconfig_vlan24="inet 192.168.24.252/24 vlan 24 vlandev lagg0 up" # VLAN34 - LAN ifconfig_vlan34="inet 192.168.34.252/24 vlan 34 vlandev lagg0 up" # VLAN 611 - VPNs ifconfig_vlan611="inet 10.106.11.252/24 vlan 611 vlandev lagg0 up"
On Fri, Dec 9, 2011 at 4:13 AM, Brett Glass <brett@lariat.net> wrote:> Secondly, there's still some strangeness in the sc terminal emulation. When > I run jove, the status line at the bottom of the screen isn't entirely in > reverse video as it should be. Only parts of it are, and the highlighting > changes -- seemingly at random -- as I work.Did you take the change to /etc/ttys going from cons25 to xterm 'type'? -Ben Kaduk