Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64
Rep:
2nd NIC doesn't get a dhcp ip address
I'm struggling with an issue here.
I have Ubuntu server 10.04 2 network cards in it.
eth0 is LAN side and has fixed ip, eth1 will be having a dynamic ip from the isp provider when they come next week.
Now i was already testing the eth1 card to put it also in the same LAN side to obtain an IP from the dhcp server running on the server, can this work for only testing?
Because when i restart the interfaces eth1 does not get an IP
And I'm worried and thinking that this NIC isn't working properly but the output with ifconfig -a gives me all kind of information about eth1
I also have ipv4forward enabled and later on when the actual isp line is there i will also activate the NAT in iptables.
But first I'd like to know if I can test eth1 to get an ip from the dhcp server on eth0 ?
If I give eth1 a static IP in the range of the LAN I can ping to it. but why does it not get a dhcp IP ?
I also have tried a new NIC eth2 but it gives me the same result
Even after connecting a router to this nic eth2 and did a restart it gave me this result :
/etc/init.d/networking restart
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth2.pid with pid 7936
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth2/00:0e:2e:37:20:83
Sending on LPF/eth2/00:0e:2e:37:20:83
Sending on Socket/fallback
ssh stop/waiting
ssh start/running, process 10443
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth2/00:0e:2e:37:20:83
Sending on LPF/eth2/00:0e:2e:37:20:83
Sending on Socket/fallback
DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth2 to 255.255.255.255 port 67 interval 14
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64
Original Poster
Rep:
for example : and dhcp-server is running
dhcpd: DHCPREQUEST for 192.168.123.130 from 00:1d:ec:02:bf:52 via eth0
dhcpd: DHCPACK on 192.168.123.130 to 00:1d:ec:02:bf:52 via eth0
dhcpd: Dynamic and static leases present for 192.168.123.114.
dhcpd: Remove host declaration SiriusZwarts or remove 192.168.123.114
dhcpd: from the dynamic address pool for 192.168.123/24
dhcpd: DHCPREQUEST for 192.168.123.114 from 00:1d:0f:b3:d0:bb via eth0
dhcpd: DHCPACK on 192.168.123.114 to 00:1d:0f:b3:d0:bb via eth0
dhclient: Internet Systems Consortium DHCP Client V3.1.3
dhclient: For info, please visit https://www.isc.org/software/dhcp/
dhclient: Internet Systems Consortium DHCP Client V3.1.3
dhclient: For info, please visit https://www.isc.org/software/dhcp/
dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20
---------- Post added 10-10-12 at 12:23 ----------
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64
Original Poster
Rep:
Can I filter tcpdump in live situation? there are so many things passing by in my terminal screen.
The strange thing is that even if I use another router connected to this NIC it won't get a ip but when i connect the router to my pc it gives an ip.
In some kind of way this NIC or even another new NIC doesn't get an dhcp offer.
Could it be that I have to add a rule in iptables for this eth1 so it receives data?
tcpdump will see traffic before iptables messes with it, so maybe you just have a physical issue on the link? is it meant to be on the same local subnet?
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64
Original Poster
Rep:
actualy it is ment to configure this server also as router/firewall, eth0 is LAN side and eth1 is WAN side (but for this testing I have connected eth1 also in the LAN side switch), so this eth1 should be set as dhcp because the isp gives dynamic ip addresses.
If I give a static ip to eth1 then I can ping wit another PC in the LAN to this static ip assigned to eth1 and it gives me responses so the physical connection should be ok, als the green led lights up on 100Mbits on eth1 card and LAN switch.
Even with another nic card tested this and had the same issue so I do not think that the NIC card is broken.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.