Results 1 to 9 of 9
Hi all
I am using dhcp client from my ISP.
I got gateway from dhcp .
I just want client ip.so how to disable to gateway?
I not want gateway.I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-12-2008 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 15
How to disabled?
Hi all
I am using dhcp client from my ISP.
I got gateway from dhcp .
I just want client ip.so how to disable to gateway?
I not want gateway.I want to put manual when I got client ip.
Best Rgds
Please
- 12-12-2008 #2Just Joined!
- Join Date
- Dec 2008
- Location
- Maryland
- Posts
- 18
You can change the default route (gateway) by giving the following commands (where x.x.x.x is the IP address of the route that you want.
You would need to script something like the above in order to not have to do that manually each time.Code:route delete default route add default gw x.x.x.x
- 12-13-2008 #3Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 678
Depending on your dhcp client, you can edit the settings not to request/use the default gateway.
In my /etc/dhcp3/dhclient.conf:
If I delete "routers," and restart the network then it doesn't populate the default gateway.Code:request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope;
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.
- 12-13-2008 #4Just Joined!
- Join Date
- Dec 2008
- Posts
- 15
Hi
where is dhclient.conf?
I am using Fedora 7
Thanks for reply
- 12-14-2008 #5
Dunno in Fedora... in Xubuntu it's:
/etc/dhcp3/dhclient.conf
- 12-15-2008 #6Just Joined!
- Join Date
- Dec 2008
- Posts
- 15
I think I will be see this file when dhcp on in my interface.
right?
thanks
- 12-15-2008 #7
When looking for a file you could always do the following:
<file> being the file you are looking for.Code:locate <file>
- 12-16-2008 #8Just Joined!
- Join Date
- Dec 2008
- Posts
- 15
Thanks

Best Regards
Please
- 12-22-2008 #9Just Joined!
- Join Date
- Dec 2008
- Posts
- 15
Hi
I am not OK.
I just found dhclient.conf-simple so I copy to /etc/dhclient.conf and deleted routers;
but I did not get also IP.
How can I fix?
Thanks


Reply With Quote
