Here is my
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet dhcp
Here is what i receive on
ip addr show:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:db:15:99 brd ff:ff:ff:ff:ff:ff inet 126.96.36.199/22 brd 188.8.131.52 scope global eth0 inet6 fe80::20c:29ff:fedb:1599/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:db:15:a3 brd ff:ff:ff:ff:ff:ff inet 184.108.40.206/22 brd 220.127.116.11 scope global eth1 inet6 fe80::20c:29ff:fedb:15a3/64 scope link valid_lft forever preferred_lft forever
Is it possible to have 2 static IP addresses on one machine when you have two LAN cards?
My internet connection is thru dhcp.
With this configuration all the IPs can be pinged from the machine itself but when i try to ping IPs from other machine only the IP from
eth1 is reachable.
So how can i make both IPs reachable?
In this case i have to able to ping
18.104.22.168 but right now i can ping only
22.214.171.124, why, where is my mistake ?
I am using Ubuntu Server 14.04 x64
Thanks in advance!