Open rajil opened 8 years ago
Instead of adding lagg0 to the switch, I added vlan100 directly. Is this the problem?
Attaching vlan100
is the correct device to attach to the switch unless you are trying to pass traffic on the lagg0
via the native vlan.
The thing that stands out to me is the lack of an up
in the /etc/rc.conf
but it is hard to tell with the lack of their information for ifconfig
:
ifconfig_vlan100="inet 192.168.1.2 netmask 255.255.255.0 vlan 100 vlandev lagg0 fib 0"
should be
ifconfig_vlan100="inet 192.168.1.2 netmask 255.255.255.0 vlan 100 vlandev lagg0 fib 0 up"
vlan interfaces are up and network works fine on the host and its jails. Here is the ifconfig of vlan and lagg
lagg0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO>
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
laggproto lacp lagghash l2,l3,l4
laggport: igb0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
laggport: igb1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
vlan100: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=303<RXCSUM,TXCSUM,TSO4,TSO6>
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
inet 192.168.1.26 netmask 0xffffffff broadcast 192.168.1.26
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
vlan: 100 parent interface: lagg0
vlan200: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=303<RXCSUM,TXCSUM,TSO4,TSO6>
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
inet 192.168.2.10 netmask 0xffffffff broadcast 192.168.2.10
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
fib: 1
vlan: 200 parent interface: lagg0
By the way, thank you for all the formatted post 👍 . Also sorry for hitting the basics first.
Hmm, this is curious. I had a similar issue with my on-board Broadcom NICs. I was able to ping the VM machines from the host and other VMs but unless the traffic originated from outside the box anything beyond pings failed. Have you tried an SSH connection from a VM to a VM? I bet this will not work. The solution was to disable all the hardware offloading mechanisms on the base NICs which will propagate down to the VLAN interface. I did this through the /etc/rc.conf
but you could do it live but it requires bringing down the igb0
and igb1
.
/etc/rc.conf
:
ifconfig_igb0="-rxcsum -txcsum -rxcsum6 -txcsum6 -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso -tso -tso4 -tso6 -lro -vlanhwtso -vlanhwcsum up"
ifconfig_igb1="-rxcsum -txcsum -rxcsum6 -txcsum6 -vlanmtu -vlanhwtag -vlanhwfilter -vlanhwtso -tso -tso4 -tso6 -lro -vlanhwtso -vlanhwcsum up"
If this does not work, I suggest running tcpdump
from the host on the tap interface connecting to the guest. Use the -vvvv
flag to get the verbosity level needed to figure out the problem. It will only take a few seconds with this verbosity to both fill the buffer and provide answer of the root cause.
Thanks, the changes you proposed to disable hardware offloading worked. I am now able to ssh from host to the vm. The NIC on my motherboard are Intel I210.
#lspci
05:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
06:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
I guess there will be some speed reduction by disabling offloading. I am bit surprised that this needed to be done on Intel NICs.
The Intel I210 exposes the following options:
#ifconfig igb0
igb0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO>
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
and i used the following options in /etc/rc.conf
ifconfig_igb0="-rxcsum -txcsum -vlanmtu -vlanhwtso -tso4 -tso6 -vlanhwtso -vlanhwcsum up"
ifconfig_igb1="-rxcsum -txcsum -vlanmtu -vlanhwtso -tso4 -tso6 -vlanhwtso -vlanhwcsum up"
Glad that those commands worked out for you. Your comment about the Intel NICs makes me wonder if the problem is with the VLANs on top of the LAGG. Which is the same configuration as what I am running.
Hello,
I have an ubuntu vm running. I am able to ssh into this vm from other PC's on the network except the host. Ping from the host to the vm works fine though.
The vm config is as follows:
VM details:
The vm switch is as follows:
My rc.conf is as follows:
ifconfig
Instead of adding lagg0 to the switch, I added vlan100 directly. Is this the problem?