View previous topic :: View next topic |
Author |
Message |
d3c3it l33t
Joined: 01 Mar 2003 Posts: 765 Location: Manchester, UK
|
Posted: Sat Mar 01, 2003 12:55 pm Post subject: Gateway weirdness |
|
|
I just installed Gentoo dual boot on my laptop, gentoo found my nic and was downloading everything fine without a problem. I recompiled and setup everything and finished the install. I restarted my new box tried
ping www.google.com
and it says network unreacable.
I actually found a fix with
route add default gateway 192.168.0.1
*192.168.0.1 is my gateway* and the net connection is working again. But thing is i have to do this everytime i boot my laptop i have to do this.
i dont know which config file i need to change so it stays. ive tried editing my resolv.conf with my gateway but no joy *didnt think it would because its for dns*
anyone?
thanks:) _________________ Some people go to counselling,
others use linux |
|
Back to top |
|
|
Kloeri Retired Dev
Joined: 02 Sep 2002 Posts: 144
|
Posted: Sat Mar 01, 2003 2:09 pm Post subject: |
|
|
You can set the default gateway in /etc/conf.d/net. When you have finished editing that file just restart your networking using: /etc/init.d/net.eth0 restart
Kloeri |
|
Back to top |
|
|
d3c3it l33t
Joined: 01 Mar 2003 Posts: 765 Location: Manchester, UK
|
Posted: Sat Mar 01, 2003 4:17 pm Post subject: |
|
|
sry to sound retarded but i where abouts do i put the default gateway?
ie cud you post a sample of yours? _________________ Some people go to counselling,
others use linux |
|
Back to top |
|
|
Kloeri Retired Dev
Joined: 02 Sep 2002 Posts: 144
|
Posted: Sat Mar 01, 2003 4:46 pm Post subject: |
|
|
Here's my /etc/conf.d/net - the only thing I changed is my public ip..
Code: | # /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="40.50.60.70 broadcast 40.50.60.79 netmask 255.255.255.240"
iface_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#iface_eth1="dhcp"
#dhcpcd_eth0="..."
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
gateway="eth0/40.50.60.70" |
Hope this helps,
Kloeri[/code] |
|
Back to top |
|
|
d3c3it l33t
Joined: 01 Mar 2003 Posts: 765 Location: Manchester, UK
|
Posted: Sat Mar 01, 2003 7:09 pm Post subject: |
|
|
thanks man that did the trick:) _________________ Some people go to counselling,
others use linux |
|
Back to top |
|
|
|