Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get the default gateway to be on the right interface
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rikai
n00b
n00b


Joined: 05 Feb 2005
Posts: 65
Location: Huntsville, AL

PostPosted: Wed Apr 13, 2005 6:25 am    Post subject: Can't get the default gateway to be on the right interface Reply with quote

I'm building a computer to act as a media center pc for my room, and, as I can't run ethernet in there, it has wireless. It also has builtin 10/100 ethernet.

In case it matters: the wireless card is a Linksys WMP54Gv4 with a RT2500 chipset, using nidswrapper, connecting to a WRT54G using 128-bit WEP. The ethernet is a Realtek 8139 chip on a Chaintech 7NJL6.


Anyway, while I was setting it up, I used DHCP and eth0 as the main interface, as it was much faster than wireless. Now that I'm getting ready to put in my room I'm setting it up to be using a static ip and just using the wireless. So, I removed eth0 from the default runlevel, and in /etc/conf.d/net I added
Code:
gateway="wlan0/192.168.1.1"


like I saw in the gentoo handbook. However, when I boot the computer, eth0 still comes up (with the proper IP!!), and (tries) to act as the gateway.


What am I doing wrong?
Back to top
View user's profile Send private message
rouben
Apprentice
Apprentice


Joined: 07 Feb 2005
Posts: 159
Location: Thornhill, ON, Canada

PostPosted: Wed Apr 13, 2005 6:27 am    Post subject: Reply with quote

How did you remove net.eth0 from startup? I'd check the symlinks in all the runlevels if I were you, it might still be stuck somewhere there. ;)

With regards to the wireless interface, seems like you need to add its startup script to the default runlevel.
Back to top
View user's profile Send private message
Rikai
n00b
n00b


Joined: 05 Feb 2005
Posts: 65
Location: Huntsville, AL

PostPosted: Wed Apr 13, 2005 6:33 am    Post subject: yeah, about wlan0 Reply with quote

I did a
Code:
rc-update del net.eth0 default


wlan0 (the wireless device) is on my default runlevel, and rc-status shows that eth0 isn't on any runlevels. I guess it could be stuck in the symlinks somewhere... where's the directory for all of that?

While watching the computer come up, I see as wlan0 connects to my router and everything, but as it says "Adding default gateway 192.168.1.1/24" it has the little [!!] after it, and just keeps right on trucking.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum