Firstly my gateway 217.20.xxx.1 My ip adress 188.72.xxx.189 Sub net 255.255.255.0 this settings works on fedora 12 perfect but on centos ubuntu freebsd or fedora core it is not working but on all this systems i am able to use nat, i have installed linux again and again thousands of time the given result from centos 5.4 Also as you could see there is no gateway of me on the route table Thanks for your help [root at Lin3 ~]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:0E:CD:B0 inet addr:188.72.xxx.189 Bcast:188.72.xxx.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe0e:cdb0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1168 errors:0 dropped:0 overruns:0 frame:0 TX packets:63 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:97464 (95.1 KiB) TX bytes:11603 (11.3 KiB) Base address:0x2000 Memory:d8940000-d8960000 eth1 Link encap:Ethernet HWaddr 00:0C:29:0E:CD:BA inet addr:192.168.130.133 Bcast:192.168.130.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe0e:cdba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:80 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2068 (2.0 KiB) TX bytes:15191 (14.8 KiB) Base address:0x2080 Memory:d8960000-d8980000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8281 errors:0 dropped:0 overruns:0 frame:0 TX packets:8281 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4840628 (4.6 MiB) TX bytes:4840628 (4.6 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) [root at Lin3 ~]# route -n Kernel IP routing table *Destination Gateway Genmask Flags Metric Ref Use Iface* *192.168.130.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1* *188.72.xxx.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0* [root at Lin3 ~]# service network restart Bridged arabirimi durduruluyor: [ TAMAM ] Nat arabirimi durduruluyor: [ TAMAM ] loopback aray?z? durduruluyor: [ TAMAM ] loopback aray?z? etkinle?tiriliyor: [ TAMAM ] *Bridged aray?z? etkinle?tiriliyor: RTNETLINK answers: Network is unreachable* [ TAMAM ] Nat aray?z? etkinle?tiriliyor: eth1 i?in IP bilgisi saptan?yor... bitti. [ TAMAM ] [root at Lin3 ~]# -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100327/c327a6a4/attachment-0002.html>
2010/3/27 cahit Eyig?nl? <cahit.eyigunlu at gmail.com>:> Firstly my gateway 217.20.xxx.1 > > My ip adress 188.72.xxx.189 > > Sub net 255.255.255.0 this settings works on fedora 12 perfect but on > centos? ubuntu freebsd or fedora core it is not working but on all this > systems i am able to use nat, i have installed linux again and again > thousands of time the given result from centos 5.4echo "GATEWAY=217.20.xxx.1" >> /etc/sysconfig/network -- Eero -- Eero
cahit Eyig?nl? wrote:> > Firstly my gateway 217.20.xxx.1 > > My ip adress 188.72.xxx.189 >there's something you're not telling us here, as the gateway has to be reachable via a network, and 217.20.xxx.1 is not part of either network shown in your route or ifconfig output.