I left Ubuntu and came back after a while so I don't remember much. Now I'm trying to get my IP address. All I'm getting from running ifconfig
is
eth0 Link encap:Ethernet HWaddr 3c:97:0e:11:22:0d
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:f2500000-f2520000
(BTW, I don't really understand what UP BROADCAST MULTICAST
means.)
$ sudo ifdown eth0
ifdown: interface eth0 not configured
Then
$ sudo ifup eth0
Ignoring unknown interface eth0=eth0
And finally 2:
$ ip addr show eth0
eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN
group default qlen 1000 link/ether 3c:97:0e:11:22:0d brd ff:ff:ff:ff:ff:ff
A remote possibility for this issue can be a misconfigured Ethernet Interface.
Use
ethtool eth0
command to get the existing configuration.In some cases, you might find
If so, set the speed and duplex using:
For modern networks, this config should work.
Once the speed and duplex are set, do
dhclient eth0
if you still don't get an IP.Note: The above setup will reset on reboot. So, if the above solution solves your problem, add following lines to
/etc/rc.local
:Is this problem on a virtual machine? If so in the Advanced Network settings, on the Hypervisor see if the "cable connected" check box is ticked. It might just be that the VM isn't connected to the network
Try :
The meanings of
UP
,BROADCAST
, andMULTICAST
UP
- device is functioningBROADCAST
- device can send traffic to all hosts on the linkMULTICAST
- device can perform and receive multicast packetsMore about mulicast visit Site
You might just try setting your IP address to something on your subnet. Assuming you're on a 192.168.1.255 network, try this:
Replace 192.168.1.50 with the IP you want to get, and replace 192.168.1.1 with the IP address of your router/gateway.
I have had a similar problem, and this solved it for me.
I have solved this problem by:
ifcfg
file which currently runifcfg-eth0
toifcfg-eth1
.It worked correctly for me.