binding IPs
LC
listfedora at gmail.com
Wed Jun 6 14:08:50 UTC 2007
>> >> Thanks. This box is a samba machine. I want to allow local users and
>> >> remote
>> >> users to access it. I have 2 NIC on this box. eth0 is on a public
>> >> IP(12.73.1.185) and eth1 is on the local IP(192.168.1.150). But how do
>> >> i set
>> >> the gateway? Can i specify the public gateway for eth0(12.73.1.1) and
>> >> the
>> >> gateway for eth1 (192.168.1.1) and as for the gateway in
>> >> /etc/sysconfig/network i will remove it. Will this work?
I had tested with the above and 192.168.1.1 is the default route.. I have
no problem going into the internet via the router on 192.168.1.1. I can ping
both the public and local IP in LAN, but I am cannot ping the public IP from
another network.
[root at samba ~]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
12.73.1.176 * 255.255.255.240 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0
eth1
169.254.0.0 * 255.255.0.0 U 0 0 0
eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0
eth1
[root at samba ~]#
[root at samba ~]# ip route
12.73.1.176/28 dev eth0 proto kernel scope link src 12.73.1.185
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.150
169.254.0.0/16 dev eth1 scope link
default via 192.168.1.1 dev eth1
[root at samba ~]#
The machine does not have a firewall yet, so i guess the public IP is not
routed out, therefore unreachable.
How do I route the public IP out?
Thanks
More information about the fedora-list
mailing list