Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-14-2005, 04:57 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 20

Rep: Reputation: 0
WRT54G linksys router

I have a WRT54G linksys router connected to a linksys EFAH05W Hub then its connected to an ADSL modem. I have one windows machine connected to the router, and I have one linux box connected to the router, and then I have two laptops connected to it wireless. All these computers have been assigned automatic private DHCP IPs, and they connect to the internet fine, but they all use 1 IP, which is my gateway IP(for some weird reason).
The router is setup to connect with PPPoE. My ISP(SBC) has assigned me 5 sticky IPS over PPPoE.
My problem is I want to beable to use my 5 sticky IPS for vhost in Linux with ifconfig eth0:X but when I do that I can't use those sticky IP's for some reason, I can't ping the ips within my network either.
Old 03-15-2005, 12:31 PM   #2
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32

That's totally normal !
Your WRT54G is doing masquerading (the Linux word) : since most internet users have only one public IP, the routers are made so that they translate all private IPs (,, to the IP they have on their Internet interface. That's a classical routing functionality.

If you configure your 5 public IPs on your LAN machines, they should be able to ping each other if they're connected on the same switch/hub. But assuming your public IPs are, and that you also use the private IPs, : can ping can ping canNOT ping : they're not on the same subnet.

Here's the LAN topology you should have :
PC1 (private dhcp IP)---
                                     |--- Ethernet or wireless WRT54G Internet iface---
PC2 (private dhcp IP)---                                                                              |--- Hub --- modem
                                                                           PC3 (public IP address)---
Every pc connected to your routeur must use private IP (since they're routed !)
Every PC connected to the hub must use a public IP (since they're not routed !)
Old 03-16-2005, 04:56 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
I decided to setup my system like so:

Internet -> Linux(router) -> router(access point) -> LAN. I have 3 computers connected to the LAN, 2 wireless and 2 wired...
And now I can change my IP's in Linux to which ever eth0:X I have.
But all my computers on the LAN IP are directly connected through the gateway IP, lets say i want to change the IP for one of my LAN's to connect through instead of which is the IP all my computers get once they connect to the internet. So I have to do a NAT MASQ, would that solve the problem?


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linksys WRT54G and CUPS/Samba Malibyte Linux - Wireless Networking 6 10-09-2009 03:07 PM
Unable to establish internet connection using Linksys WRT54G Router on Mandrake 10 djynen Linux - Networking 3 11-25-2006 11:01 AM
Setting up router (Linksys WRT54G v5) to connect to internet (SUSE 9.3) Jongi Linux - Networking 2 11-15-2005 02:33 PM
Non-DHCP connect on a Linksys WRT54G router Zyk Linux - Wireless Networking 1 07-11-2005 06:13 PM
Linksys wireless-g router (WRT54G V2) help R4ndy Linux - Wireless Networking 2 10-28-2004 09:54 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:18 AM.

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