Unix/Linux Go Back    


IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Why eth1 with auto dhcp disturbs pppoe over eth0?

IP Networking


Tags
dhcp, lan, pppoe, solved, ubuntu

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago
adrhc adrhc is offline
Registered User
 
Join Date: Apr 2017
Last Activity: 16 April 2017, 8:40 PM EDT
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Why eth1 with auto dhcp disturbs pppoe over eth0?

Hi, I use ubuntu 16.04 desktop with ufw (default setup + 22, 80, 443 ports open).

I connect directly to ISP using pppoe over eth0. I also have eth1 which when disabled the websites are accessible in browser. When starting eth1 with auto dhcp the websites are no longer accessible in browser (give a timeout while trying to load). eth1 is plugged in a LAN port of a router with its WAN port unplugged (yeah, don't ask why). When setting a manual ip on eth1 while gateway and dns are left blank the websites are accessible in browser again.

Why this happens?
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 24 April 2017, 2:03 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,407
Thanks: 99
Thanked 1,490 Times in 1,108 Posts
Quote:
Originally Posted by adrhc View Post
eth1 is plugged in a LAN port of a router with its WAN port unplugged (yeah, don't ask why). When setting a manual ip on eth1 while gateway and dns are left blank the websites are accessible in browser again.
You have already said it: DHCP (dynamic host configuration protocol) is a method of not only setting an IP address but to configure the whole IP stack of a system: this includes (but is not limited to:

- IP adresses
- subnet masks
- static routes
- name resolution

What exactly you get from the DHCP-server is configured there, not your system and chances are the DHCP-server is just configured badly.

So, if you connect to your first DHCP-server on eth0 you get everything configured right and your browsing is working. The second DHCP-server is perhaps configured the same way but because there is no outside connection you cannot use what it configures on your system and therefore the configuration is wrong and if you use that your working config is overwritten by a not-working config. Actually, you can use the IP-address you get, but not the DNS server and/or static routes that come along with it.

Configure the DHCP for your second interface for "DHCP (addresses only)" so that it doesn't overwrite the content of your file /etc/resolv.conf when configuring an IP address. Otherwise get the DHCP-server configured correctly so that it doesn't send certain "option fields" (DHCP-terminology) or fill them with values which work.

I hope this helps.

bakunin
The Following User Says Thank You to bakunin For This Useful Post:
adrhc (1 Week Ago)
Sponsored Links
    #3  
Old Unix and Linux 1 Week Ago
adrhc adrhc is offline
Registered User
 
Join Date: Apr 2017
Last Activity: 16 April 2017, 8:40 PM EDT
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Thank you and I consider this thread SOLVED.
    #4  
Old Unix and Linux 1 Week Ago
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 26 April 2017, 4:36 AM EDT
Location: San Jose, CA, USA
Posts: 10,215
Thanks: 511
Thanked 3,544 Times in 3,017 Posts
Hi adrhc,
I'm glad that you got the help you needed.

To mark a thread solved, hit the "Edit Tags" button in the upper right corner of the Tags box at the top of every page of this thread and add the tag "solved". I have done that for you for this thread.
The Following User Says Thank You to Don Cragun For This Useful Post:
adrhc (1 Week Ago)
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Dual NICs - When I 'ifup eth1' it replaces eth0 phaedrus Red Hat 2 01-09-2013 07:09 PM
Wan on eth1 and Lan on eth0 golpemortal Red Hat 0 11-04-2012 12:12 PM
Problem in eth0 and eth1 sharing internet with other computers paruhang IP Networking 2 05-29-2012 08:52 AM
Reg- eth0,eth1 (ethernet card) kurva Solaris 1 07-09-2009 06:02 PM
ifcfg-eth0 and eth1 is N/A kenshinhimura Red Hat 2 03-12-2008 06:14 PM



All times are GMT -4. The time now is 07:44 AM.