Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115
Rep:
public IP pool behind linux router
Dear Guru help require.
I have scenario to solve, I have to configure public IP on my network PC which are behind Linux router.
110.88.89.66/32(router WAN-IP eth1) --> 192.168.1.1 eth0 and 110.88.90.69/29 eth0:1 (router LAN-IP)
default GateWay of my linux router is 110.88.89.65
now I configure IP 110.88.90.90/29 on my windows machine, and Internet is working fine , but I get 110.88.89.66 on www.whatismyip.com, question is WHY this IP shows on whatismyip.com???? why 110.88.90.90 not shows on whatismyip.com??? what I am doing wronge?? help me
You should provide more information about your router and network. First you should provide us your network stuff from your router (especially NAT rules, routes and interfaces). Beside of that I still didn't get why you use 192.168.1/24 as you seem to not need it. In short: be more verbose.
Configure 2 addresses on the lan nic.
eth0 = 192.168.1.1/24
eth0.1 = 110.88.90.69/29
remove masquerade all and configure nat for just the 192.168.1.0/24 subnet.
The last three bits determine which host is addressed.
The first one will have these bits all zeros. This is your network address. The last one has all three bits ones. This is your broadcast address. One of IP addresses will be used for your router's gateway address. By convention, the first or last legal IP address for your network (not ending in 000 or 111).
Your IP addresses are all over the place. Please indicate what block of address you were given by your ISP.
Maybe you transposed a couple numbers.
This doesn't make sense: 110.88.90.69/29
But this does: 110.88.90.96/29
You have two networks. One with a private address range. Another with a public address range. Your router will have one rule to route traffic for each range, with the private being masqueraded to one or more of your public IP addresses.
If you have a block of public IP addresses because you are offering services on the Internet, then you should have two firewalls and place the public hosts in the DMZ. You want to isolate the LAN traffic from incoming Internet traffic. You could also use three NICs. One for the WAN, one for the DMZ and one for the LAN.
I would recommend you read through the Network Administrators Guide book. It is an O'Reilly book. The second edition is available for free:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.