jeudi 5 mars 2015

Not able to resolve IP address for eth1 in Vagrant VM


On runnning ifconfig command I get the following as output. I need the IP address of eth1 for running my python server port with.



eth0 Link encap:Ethernet HWaddr 08:00:27:CE:08:3D
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fece:83d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2474 errors:0 dropped:0 overruns:0 frame:0
TX packets:1511 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:204674 (199.8 KiB) TX bytes:158605 (154.8 KiB)

eth1 Link encap:Ethernet HWaddr 08:00:27:18:CF:85
inet6 addr: **fe80::a00:27ff:fe18:cf85/64** Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20998 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1648690 (1.5 MiB) TX bytes:10524 (10.2 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:340 (340.0 b) TX bytes:515 (515.0 b)


inet6 addr: fe80::a00:27ff:fe18:cf85/64 for eth1 is not in standard IP addres format. What do I do to get the IP address of eth1


edit 1: Result of the ip command:



[root@localhost config]# ip a l dev eth1
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:18:cf:85 brd ff:ff:ff:ff:ff:ff
inet6 fe80::a00:27ff:fe18:cf85/64 scope link
valid_lft forever preferred_lft forever


Aucun commentaire:

Enregistrer un commentaire