• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Debian trunk port can only access servers that also have trunk ports

Red Squirrel

No Lifer
I am trying to get trunking to work in debian and not having much luck. Basically I got it working to the point where I see bond0.2 when I do ifconfig, but I can only ping 1 server, which also has a trunking port. I cannot ping anything else on vlan2 (my main vlan). Currently that is the only vlan configured.

Also, for whatever reason bond0 also gets the same IP as bond0.2. I don't want bond0 to have an IP, that interface should not even be used directly because it's a trunk.

I don't have a way to copy and paste my config because I don't have ssh access, so I have to type it manually but basically it's this:

Code:
auto lo
iface lo inet loopback

auto eth0
auto eth1

auto bond0
iface bond0 inet manual
bond_mode 802.3ad
bond_miimon 100
bond downdelay 200
bond updelay 200
slaves eth0 eth1

auto bond0.2
iface bond0.2 inet static
address 10.1.1.30
netmask 255.255.0.0
network 10.1.0.0
gateway 10.1.1.1

When I do ifconfig, both bond0 and bond0.2 have IP 10.1.1.30. I think this is causing an issue because when I try to access something out the network it's probably going as untagged or something.

I have another server with a similar config but it's CentOS and does not use port bonding.

Is there a way I can get this to work properly, did I do something wrong? I just followed a tutorial online, but they seem to vary from site to site.

Also, is there a way to add vlans without having to restart networking? That wont be acceptable once this is in product. RH seems to handle networking much better than debian I find. In fact depending on the changes I make I find sometimes I even have to reboot.

Oh and I know the bonding part works as I tried it stand alone first, then I configured the bond port on the switch as trunk and allowed all the vlans, then did the same on the server (well, attempted).


Edit: Works after a reboot.... wow. Is this windows 95? lol
There has to be a way to make this stuff work without rebooting though, I hope?
 
Last edited:
Back
Top