Skip to main content

Thread: Multiple Network Cards


i have ubuntu 12.04 machine works fine... except need add 2nd network card because want run 2nd instance of mysql on standard port 3306... have 2 mysql servers on 1 box standard port.

added 2nd network card, , "ifconfig -a" shows exists eth1 , has ip address on same network eth0. can ping eth0 interface @ "10.111.11.100", can't ping "10.111.11.101" on eth1.

need add permanent routes route table on ubuntu box start working?

eth0 link encap:ethernet hwaddr 02:93:08:c0:a1:d5
inet addr:10.111.11.100 bcast:10.111.11.255 mask:255.255.255.0
inet6 addr: fe80::93:8ff:fec0:a1d5/64 scope:link
broadcast running multicast mtu:1500 metric:1
rx packets:1200351 errors:0 dropped:0 overruns:0 frame:0
tx packets:834602 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
rx bytes:188261925 (188.2 mb) tx bytes:1576379965 (1.5 gb)
interrupt:27

eth1 link encap:ethernet hwaddr 02:93:08:ea:28:6a
inet addr:10.111.11.101 bcast:10.111.11.255 mask:255.255.255.0
inet6 addr: fe80::93:8ff:feea:286a/64 scope:link
broadcast running multicast mtu:1500 metric:1
rx packets:126 errors:0 dropped:0 overruns:0 frame:0
tx packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
rx bytes:8566 (8.5 kb) tx bytes:2178 (2.1 kb)
interrupt:28

lo link encap:local loopback
inet addr:127.0.0.1 mask:255.0.0.0
inet6 addr: ::1/128 scope:host
loopback running mtu:16436 metric:1
rx packets:1253 errors:0 dropped:0 overruns:0 frame:0
tx packets:1253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
rx bytes:96020 (96.0 kb) tx bytes:96020 (96.0 kb)
route -n
kernel ip routing table
destination gateway genmask flags metric ref use iface
0.0.0.0 10.111.11.1 0.0.0.0 ug 0 0 0 eth0
0.0.0.0 10.111.11.1 0.0.0.0 ug 100 0 0 eth0
10.111.11.0 0.0.0.0 255.255.255.0 u 0 0 0 eth0
10.111.11.0 0.0.0.0 255.255.255.0 u 0 0 0 eth1
cat /etc/network/interfaces
# loopback network interface
auto lo
iface lo inet loopback

# primary network interface
auto eth0
iface eth0 inet static
address 10.111.11.100
netmask 255.255.255.0
gateway 10.111.11.1

auto eth1
iface eth1 inet static
address 10.111.11.101
netmask 255.255.255.0

i'm not sure, might there's no gateway defined second interface.

actually, think away configuring second ip address on first ethernet port - don't need second physical interface. try this:
code:
# loopback network interface  auto lo  iface lo inet loopback    # primary network interface  auto eth0  iface eth0 inet static  address 10.111.11.100  netmask 255.255.255.0  gateway 10.111.11.1    auto eth0:1  iface eth0:1 inet static  address 10.111.11.101  netmask 255.255.255.0  gateway 10.111.11.1


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless Multiple Network Cards


Ubuntu

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP