Can I set up two NICs bridged together and still SSH into the bridging machine?
Posted
by
squinlan
on Server Fault
See other posts from Server Fault
or by squinlan
Published on 2012-03-30T02:03:09Z
Indexed on
2012/03/30
5:32 UTC
Read the original article
Hit count: 185
I have a ubuntu box setup with two NICs. I can bridge them together just fine, but I haven't been able to setup a way to SSH into the box once the connections are bridged together. Here's my /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet manual
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 192.168.33.213
netmask 255.255.255.0
gateway 192.168.33.1
bridge_ports eth0 eth1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
This works just fine for bridging, but I'm not able to SSH into the box. I tried setting up another interface on one of the NICs:
auto eth0:1
iface eth0:1 inet static
address 192.168.33.215
netmask 255.255.255.0
gateway 192.168.33.1
But this really didn't help. Is it possible to ssh into a machine that has all of its NICs bridged? If it is, how?
© Server Fault or respective owner