LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-14-2007, 09:50 AM   #16
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 229Reputation: 229Reputation: 229

A list of your steps w/ comments & Q's, please jump on anything incorrect.
  1. ifconfig ra0 192.168.1.90
    ra0 is what I have been calling "wlan0".
    You are giving it a static IP.
    Is the WRT53G a DHCP server & is .90 outside the IP range it serves from?

  2. ifconfig eth0 172.28.201.3
    You already had the BEFSR41 running 172.28.201.0 on its LAN ("PC") ports.

  3. ifconfig eth1 192.168.8.1
    You used my arbitrary 192.168.8.0 for the new 2-node network w/ static IP.
    An appropriate config. setting was made for the WAN port on the BEFSR41.

  4. route add -net default gw 192.168.1.1 netmask 0.0.0.0 metric 1
    The WRT53G is 192.168.1.1 (as I suspected )

  5. sysctl -p
    Would the contents of /etc/sysctl.conf give any insight?

  6. iptables -t nat -A POSTROUTING -o ra0 -j MASQUERADE
    This NAT's the house net to your personal LAN.
    Makes me wonder if we shouldn't explore an iptables solution to this.

  7. dhcpd eth0
This I don't understand -- it appears to serve DHCP to your LAN, but isn't BEFSR41 already doing that? Did you mean dhcpd eth1, which would serve DHCP to the WAN port on the BEFSR41? Or did you mean
dhcpcd or perhaps dhclient?

Here's my revised diagram after all:
Code:
                     \    /
                      \  /  ~ ~ ~ ~ ~ ~ \
   (      )        +--------+            \  +-------------+
 (   'Net   ) ==== | WRT54G |             \ |   "Slack"   |
   (      )        +--------+              \| ra0 < wlan0 |
                   192.168.1.0/24           | .           |
                                            | . dedicated |
    \    /                                  | . internal  |
     \  /                                   | . route     |
  +--------+      +---------+ 192.168.8.0/? | .           |
  | WPN802 |      | BEFSR41 | ============= | eth1 (new)  |
  +--------+      +---------+               |             |
        |___________| | | |_________________| eth0        |
                      | |                   |             |
                  172.28.201.0/?            +-------------+
And a table of networks:
Code:
Network    DHCP
#  Name   Server   IP 
-  -----  -------  ---------------
1  House  WRT54G   192.168.1.0/24
2  LAN    BEFSR41  172.28.201.0/?
3  link   static   192.168.8.0/?
Please correct all my mistakes & bad assumptions.

Last edited by archtoad6; 06-14-2007 at 02:10 PM. Reason: re-label wlan0, add #'s to network table
 
Old 06-14-2007, 10:23 AM   #17
starmonche
Member
 
Registered: Jan 2007
Location: Overland Park
Distribution: Centos6
Posts: 60

Original Poster
Rep: Reputation: 15
#1 yes, my wifi card is now ra0 instead of wlan0 (since i started using the rt2500 tool i found on serialmonkey)

#3 i set my (befsr41) router's default gateway to 192.168.8.1 and am using the dns servers assigned by dhcp to the wrt54g

#5 /etc/sysctl.conf has (only) this:
net.ipv4.ip_forward = 1

#6 this is probably the source of my problems. i'm not sure how to fine-tune it so that all internet traffic stays between ra0 and eth1.

#7 dhcp is disabled on my router (befsr41) because my slack box runs a dhcp server (my router doesn't let me specify which IPs go to which machine). the slack box assigns IPs in the 172.28.201.x range.

it looks like you have my whole setup figured out correctly.

i still have internet access on my 172.28.201.x machines if i disconnect eth0 (and assign the "testing" machine a static ip). but all that tells me is that the router WAN port is indeed working correctly. internet could still somehow be traversing through eth0 by default when it's connected and choke my internet connection.

does that make sense?

if i'd been able to bridge ra0 and eth1 then my slack box wouldn't have had internet access (unless i tweaked it) and if i can pull that off then i think wan and lan traffic will finally have been separated.

Last edited by starmonche; 06-14-2007 at 10:52 AM.
 
Old 06-19-2007, 01:33 PM   #18
starmonche
Member
 
Registered: Jan 2007
Location: Overland Park
Distribution: Centos6
Posts: 60

Original Poster
Rep: Reputation: 15
I've started a new thread with this as "Internet & File Sharing (Advanced)"
 
Old 06-19-2007, 05:33 PM   #19
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 229Reputation: 229Reputation: 229
Where?

Why?
 
Old 06-20-2007, 07:10 PM   #20
starmonche
Member
 
Registered: Jan 2007
Location: Overland Park
Distribution: Centos6
Posts: 60

Original Poster
Rep: Reputation: 15
I posted it as "Internet & File Sharing (Advanced)" in the hopes that cutting right to the problem might yield more solutions.

*Ugh* and I installed dropline gnome so I could run Firestarter and suddenly I have to add "172.28.201.3 cybertron" to the hosts files on my PCs so they can find it.
 
  


Reply

Tags
art, ascii, asciiart, diagram


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connectivity problem with Mandrake Linux 10.1 LAN/WAN/Samba Server BiO|Happy Linux - Networking 3 05-05-2005 02:51 PM
Connectivity problem with network on Mandrake 10.1 LAN/WAN/Samba BiO|Happy Linux - Wireless Networking 0 04-29-2005 04:11 PM
Lost internet connectivity wremote Suse/Novell 3 03-19-2005 10:03 AM
(MDK9.1) Installed switch, lost Internet connectivity afe_coda Linux - Networking 5 11-14-2003 04:41 AM
Lost Connectivity DSL Static IP Red Hat 6.2 aimstr8 Linux - Networking 7 05-01-2002 02:09 PM


All times are GMT -5. The time now is 02:16 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration