Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 48483  / 1 Year ago, sat, january 14, 2023, 2:33:18

I am unable to acquire a wired DHCP ip address.



I have Ubuntu 13.10 installed on a thin mini-itx ECS Q77H2-TI motherboard. I'm connecting to my cable modem which does provide ip addresses to other (windows, mac osx) machines I've connected to it.



When I run ifconfig I see:



eth1      Link encap:Ethernet  HWaddr 74:27:ea:c2:62:58          
inet6 addr: fe80::7627:eaff:fec2:6258/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:267 errors:0 dropped:0 overruns:0 frame:0
TX packets:516 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:50017 (50.0 KB) TX bytes:111906 (111.9 KB)
Interrupt:20 Memory:f7c00000-f7c20000

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:1624 errors:0 dropped:0 overruns:0 frame:0
TX packets:1624 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:132240 (132.2 KB) TX bytes:132240 (132.2 KB)


cat /etc/network/interfaces gives:



auto lo
iface lo inet loopback


When I try tcpdump -i eth0 -n, I see nothing, but tcpdump -i eth1 -n, I see plenty of activity when wired.



I would love some pointers on how to get this machine connected to the internet.



Cheers,



Owen.


More From » networking

 Answers
7

Your pc view only eth1 interface. Ifconfig don't see eth0.
You can try with nm-tool command to see nic card, state ...
Simple output will be like this



$ nm-tool
NetworkManager Tool
State: connected
- Device: eth0 [Auto eth1] ----------------------------------------------------
Type: Wired
Driver: xxxxx
State: connected
Default: yes
HW Address: 74:27:ea:c2:62:58
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
IPv4 Settings:
Address: xxx.xxx.xxx.xxx
Prefix: 24 (255.255.255.0)
Gateway: xxx.xxx.xxx.xxx
DNS: xxx.xxx.xxx.xxx
DNS: xxx.xxx.xxx.xxx


Also you can try to renew ip settings from dhcp server
first



ifconfig eth1 down


next



ifconfig eth1 up


or



dhclient eth1


You will probably get ip from dhcp ...



If is your cable in eth0 interface try to up interface



ifconfig eth0 up

[#26493] Monday, January 16, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irripri

Total Points: 164
Total Questions: 111
Total Answers: 107

Location: South Georgia
Member since Sun, Aug 8, 2021
3 Years ago
irripri questions
Mon, Aug 29, 22, 03:19, 2 Years ago
Thu, Mar 30, 23, 01:56, 1 Year ago
Thu, Dec 30, 21, 08:53, 2 Years ago
;