Sponsored Content
Special Forums IP Networking Why eth1 with auto dhcp disturbs pppoe over eth0? Post 302995964 by bakunin on Sunday 16th of April 2017 05:27:11 AM
Old 04-16-2017
Quote:
Originally Posted by adrhc
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
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. Red Hat

ifcfg-eth0 and eth1 is N/A

when i finish installed rhel 4.4 to my hp dl585 box, ifcfg-eth0 and ifcfg-eth1 is not available.when i ifconfig -a,i can not see the eth0 and eth1, only lo0 and si0. Unlike to the other server i found eth0 and eth1 files in /etc/sysconfig/network-scripts/. what will i do? (2 Replies)
Discussion started by: kenshinhimura
2 Replies

2. UNIX for Dummies Questions & Answers

controlling traffic source from NIC eth0, eth1 in Linux

Hi Guys, is there a way to send traffic coming from the source iface (eth0, eth1)? i need to test traffic that will come from both eth0 and eth1 from a Linux box. Thanks, Martin (0 Replies)
Discussion started by: mdap
0 Replies

3. Solaris

Reg- eth0,eth1 (ethernet card)

Hi Guys, I am working as a L-1 support and i want to know that are the precaution need to take on eth0(Ethernet card) i heard on production server it is very much important, what are the steps need to observe on this tickets. (1 Reply)
Discussion started by: kurva
1 Replies

4. UNIX for Dummies Questions & Answers

DHCP problem and eth1 problem

At work I am trying to get this one Linux machine (let's call it ctesgm07) to behave like another Linux machine that we have (let's call it test007). test007 returns the following version info: cat /etc/debian_version: lenny/sid uname -a: Linux test007 2.6.27-7-generic #1 SMP Tue Nov 4... (0 Replies)
Discussion started by: sllinux
0 Replies

5. Ubuntu

Ubunut iptable not routing trafic between eth1 and eth0

hello, first of all i am new to unix so maybe my problem is very easy for many of you but is very important to me. So the idea is that i want to use a ubuntu 10.4 machine as a router from eth0 to eth1. but the traffic routing is nor working properly i configured the 2 interfaces to be... (2 Replies)
Discussion started by: florin.bv
2 Replies

6. IP Networking

Problem in eth0 and eth1 sharing internet with other computers

hellow everbody. iam using 32 bit centos 6.2 on my desktop and iam new to linux. i have eth0 and eth1 on my desktop. so i have some problems i have menson here: i have edited: etc/sysctl.conf net.ipv4.ip_forward = 1 and i have edited iptables too # iptables -t nat -A... (2 Replies)
Discussion started by: paruhang
2 Replies

7. Red Hat

Wan on eth1 and Lan on eth0

I have a local network on dev eth0 Server has static IP of 10.0.0.1 Gateway is 10.0.0.1 and Dns is 10.0.0.1 I am using this network for imaging 500 plus computer... Now, Issue that I am having is that I need to update packages and I dont want to change the configuration on eth0 because I... (0 Replies)
Discussion started by: golpemortal
0 Replies

8. Red Hat

Dual NICs - When I 'ifup eth1' it replaces eth0

I've got an issue with a VMWare server running RHEL 6.3 that has dual E1000 NICs. I have configured the cards as I would normally do in /etc/sysconfig/network-scripts as ifcfg-eth0 and ifcfg-eth1. I can execute ifup eth0 and bring the interface up quite happily, however when I execute ifup eth1 it... (2 Replies)
Discussion started by: phaedrus
2 Replies

9. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

10. UNIX for Beginners Questions & Answers

Ssh disturbs while loop

Hi all, I have observed that ssh exits while loop. #!/bin/ksh typeset -i i typeset -i size set -A server = " " "SERVER1" "SERVER2" i=2 while ] do while read in_module do print $in_module size=`ssh ${server} ls -l $in_module 2>/dev/null | awk '{print $5}'` ... (3 Replies)
Discussion started by: Soham
3 Replies
dhcpmgr(1M)						  System Administration Commands					       dhcpmgr(1M)

NAME
dhcpmgr - graphical interface for managing DHCP service SYNOPSIS
/usr/sadm/admin/bin/dhcpmgr DESCRIPTION
dhcpmgr is a graphical user interface which enables you to manage the Dynamic Host Configuration Protocol (DHCP) service on the local sys- tem. It performs the functions of the dhcpconfig, dhtadm, and pntadm command line utilities. You must be root to use dhcpmgr. The dhcpmgr Help, available from the Help menu, contains detailed information about using the tool. USAGE
You can perform the following tasks using dhcpmgr: Configure DHCP service Use dhcpmgr to configure the DHCP daemon as a DHCP server, and select the data store to use for storing network configuration tables.. Configure BOOTP relay service Use dhcpmgr to configure the DHCP daemon as a BOOTP relay. Manage DHCP or BOOTP relay service Use dhcpmgr to start, stop, enable, disable or unconfigure the DHCP service or BOOTP relay service, or change DHCP server parameters. Manage DHCP addresses Use dhcpmgr to add, modify, or delete IP addresses leased by the DHCP service. Manage DHCP macros Use dhcpmgr to add, modify or delete macros used to supply configuration parameters to DHCP clients. Manage DHCP options Use dhcpmgr to add, modify or delete options used to define parameters deliverable through DHCP. Convert to a new DHCP data store Use dhcpmgr to configure the DHCP server to use a different data store, and convert the DHCP data to the format used by the new data store. Move DHCP data to another server Use dhcpmgr to export data from one Solaris DHCP server and import data onto another Solaris DHCP server. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdhcm | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
dhcpconfig(1M), dhtadm(1M), pntadm(1M), in.dhcpd(1M), dhcpsvc.conf(4), dhcp_network(4), dhcptab(4), attributes(5), dhcp(5), dhcp_modules(5) Solaris DHCP Service Developer's Guide System Administration Guide: IP Services SunOS 5.10 13 Mar 2001 dhcpmgr(1M)
All times are GMT -4. The time now is 10:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy