Answer the question
In order to leave comments, you need to log in
How to configure dhcp settings received from the Internet provider?
Good afternoon all-knowing ALL.
There is a router with two network eth0 LAN and eth1 - Internet.
The provider gives settings on DHCP.
BUT, as usual, it sends its nameserver, and accordingly overwrites my settings in resolv.conf.
I have a BIND caching DNS server configured and it is written in resolv.conf The nameserver 127.0.0.1
question is how and how to adjust the settings that my network receives?
question number 2 is also from this opera - the provider gives the route:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.100.3 0.0.0.0 UG 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
192.168.12.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.100.3 0.0.0.0 UG 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
192.168.12.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.30.0 192.168.30.57 255.255.255.0 UG 0 0 0 tun0
192.168.30.57 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.100.0 192.168.30.57 255.255.255.0 UG 0 0 0 tun0
Host Loss% Snt Last Avg Best Wrst StDev
1. 192.168.30.42 0.0% 7 114.9 113.3 112.0 114.9 1.1
2. 192.168.100.210 0.0% 6 113.6 113.9 111.3 116.5 2.1
Answer the question
In order to leave comments, you need to log in
Regarding DNS, I have a similar situation.
prepend domain-name-servers 127.0.0.1;
In debian, I decided as follows: I added By routes to the end of /etc/dhcp/dhclient.conf . What do `traceroute 192.168.100.210` and `ip route get 192.168.100.210` say?
vi /etc/sysconfig/network-scripts/ifcfg-eth1
press Insert, specify BOOTPROTO=DHCP and delete the values of the parameters IPADDR, NETMASK, BROADCAT, NETWORK, GATEWAY service network restart
man dhcpcd, and specifically
-R
Prevents dhcpcd from replacing existing /etc/resolv.conf file.
try adding to /etc/dhcp/dhclient.conf
option domain-name-servers 127.0.0.1
by dhcp:
freeblack.ru/2010/04/dhcp-vs-resolv-conf/
or google about dhcp do not update resolv.conf
at 192.168.100.210:
one of the options is that if you change the server address just so that it is not in the range ?
another option is to try specifying hard routing using the iproute utility, I won’t tell you more specifically, I haven’t worked with this for a long time
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question