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.
Hi
These r IP provided by my ISP that i've put on Fedora 8:
WAN IP:xxx.xxx.xxx.17 (eth0)
Subnet:255.255.255.252
Gateway:xxx.xxx.xxx.18
Valid static(public) IP set of 2:
IP:xxx.xxx.xxx.147 & 148 (eth1, eth2)
Subnet:255.255.255.240
i want to run xxx.xxx.xxx.147 as a web server & xxx.xxx.xxx.148 as a ftp server. but I'm able to ping only xxx.xxx.xxx.17(WAN IP) from outside world. Can any1 tell me that how can i bring my 147 & 148 IP online without router.
You must enable routing on your host to get to those IP addresses. There is no way around it.
It's no big deal and should be as easy as adding this to /etc/rc.local:
echo 1 > /proc/sys/net/ipv4/ip_forward
There's another method to enable routing via a kernel option, but I can't remember the specifics.
I dont think you need to bind the .147 and .148 IPs to eth1/2. You can bind them to logical interfaces off eth0 (such as eth0:0 and eth0:1). This way, you dont need link status to bring the interface up and active.
All that's left is to bind the httpd and ftpd services to the .147 and .148 IPs addresses and you're good to go.
After reading what I just wrote, there will be some additional information needed.
When they assigned you the .147 and .148, did they give you any gateway information for that subnet? Or how did you come up with .147 and .148?
Those are odd numbers because those IPs are in the middle of the subnet xxx.xxx.xxx.144 / 255.255.255.240
.144 being the subnet address
.145-158 being valid host IPs on that subnet
.149 being the broadcast address for that subnet.
There must be at least one additional IP addresses on .144 / 255.255.255.240 assigned as a default gateway. You should be able to assign it yourself if the ISP hasn't already done so.
149-158 r unused ips. now router is dead. n i've to do it on linux server without using router. i've already done 'echo 1 > /proc/sys/net/ipv4/ip_forward' which didnt help.
WAN IP:xxx.xxx.224.17 (eth1)
Subnet:255.255.255.252
Gateway:xxx.xxx.224.18
Valid public IP:
IP:xxx.xxx.224.145 (eth2)
Subnet:255.255.255.240
IP:xxx.xxx.224.146 (eth2:0) (consider running http on this ip for now)
Subnet:255.255.255.240
IP:192.168.0.3 (eth3-internal proxy server-connection to switch)
Subnet:255.255.255.0
Now
Code:
[root@dns ~]# netstat -rnv
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
xxx.xxx.224.16 0.0.0.0 255.255.255.252 U 0 0 0 eth1
xxx.xxx.224.144 0.0.0.0 255.255.255.240 U 0 0 0 eth2
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 xxx.xxx.224.18 0.0.0.0 UG 0 0 0 eth1
im pretty sure the routes look good. do you have any firewall policies that might be blocking? Also, is eth2 up? without link status (it's not really connected to a broadcast domain, is it?), perhaps it's not actually up and active...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.