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@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@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@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@Lin3 ~]#
2010/3/27 cahit Eyigünlü cahit.eyigunlu@gmail.com:
echo "GATEWAY=217.20.xxx.1" >> /etc/sysconfig/network
-- Eero -- Eero
please check the attachments fedora is working with the properties given, and nat is working also on cent os but bridged is not working i tryed Eero what you write but still netstat -rn is same and i could not ping my gateway
2010/3/27 Eero Volotinen eero.volotinen@iki.fi
check fedora's txt i've send it is working perfect my gateway : 217.20.117.1 my ip 188.72.255.289 subnet 255.255.255.0 fedora 12 is working when i set ip directly but any other linux dist is not :( please i need help :(
2010/3/27 John R Pierce pierce@hogranch.com
2010/3/27 cahit Eyigünlü cahit.eyigunlu@gmail.com:
maybe you need to run something like route add -host 188.72.255.289, but it's uncommon that gateway is not in the same net..
-- Eero
did you get the attachment i am adding again , 188.72.255.189 already added but there is sth. different with fedora which is working with bridged connection esppecially gateway, beside this i could not ping my own gateway there are 4 other windows machines and all of them working perfect
2010/3/27 Eero Volotinen eero.volotinen@iki.fi
cahit Eyigünlü wrote:
I'm not reading your attachments, frankly, I'm surprised the mail list server didn't strip them as attachments are frowned upon on email lists.
now you're saying you have a bridged connection to? whats being bridged? is there anything else you're not telling us about? the network as given in the body of your emails is an illegal configuration
At Sat, 27 Mar 2010 20:54:04 +0200 CentOS mailing list centos@centos.org wrote:
Can you log into your fedora box and type this command at a shell prompt:
netstat -r
Copy and paste the results into an E-Mail message to this list.
This is fedora's route table : root@lin [~]# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 217.20.117.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 78.159.97.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 217.20.117.1 0.0.0.0 UG 0 0 0 eth0
and this is cent os which is not working : [root@lin2 ~]# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 188.72.255.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 [root@lin2 ~]# ping 217.20.117.1 connect: Network is unreachable
2010/3/27 Robert Heller heller@deepsoft.com
cahit Eyigünlü wrote:
fedora's eth0 has an unconventional route to the gateway via eth0 (the first line)
this is an odd network, i see like 4 different subnets all mashed up on the same physical network segment? who designed this? surely not someone with a proper network engineering background..
Fedora 12 designed automatically and i need same settings because centos is in the same machine with fedora under vmware ... the only one difference is fedora's ip address 78.159.97.xx and centos is 188.72.255.189 everything else same
2010/3/27 John R Pierce pierce@hogranch.com
this is given by datacenter and 188.72.255.188 my webserver's static ip
2010/3/27 John R Pierce pierce@hogranch.com
cahit Eyigünlü wrote:
this is given by datacenter and 188.72.255.188 my webserver's static ip
That doesn't make sense. They should give you a gateway address that is within the range of your own IP's netmask. If it works at all under any OS it must be because the gateway router is proxy-arp'ing for anything it can reach.
it workeddddddddddddd thankes every body i had a problem with activating network card :D
[root@lin2 ~]# route add default gw 217.20.117.1 dev eth0 [root@lin2 ~]# route add host 217.20.117.1 netmask 255.255.255.255 dev eth0
that is solution
27 Mart 2010 22:50 tarihinde cahit Eyigünlü cahit.eyigunlu@gmail.comyazdı:
At Sat, 27 Mar 2010 21:07:49 +0200 CentOS mailing list centos@centos.org wrote:
Manual setup:
[root@lin2 ~]# route add default gw 217.20.117.1 dev eth0 [root@lin2 ~]# route add host 217.20.117.1 netmask 255.255.255.255 dev eth0
Automagical setup:
[root@lin2 ~]# cat >>/etc/sysconfig/network-scripts/route-eth0 ADDRESS0=217.20.117.1 NETMASK0=255.255.255.255 EOF [root@lin2 ~]# cat >>/etc/sysconfig/network <<EOF GATEWAY=217.20.117.1 EOF
The *assumes* that the network (switch or router box) that eth0 is connected to also has 217.20.117.1 connected to it. Typically a router 'box' contains both the router and a ethernet switch: a 'pure' router would only have two ethernet jacks, one for each of the two networks the router routes between. Since there is no great demand to put a single machine on a network and since the switch hardware is dirt cheap and since no one does coax Ethernet anymore, modern router boxes include a switch in the 'inside' network.
i tryed this : [root@lin2 ~]# route add default gw 217.20.117.1 dev eth0 the answer siocaddrt : network is unreachable
2010/3/27 Robert Heller heller@deepsoft.com
i am newbee :( could you please write in order the routes must added for me ip 188.172.255.189 subnet 255.255.255.0 gateway 217.20.117.1
2010/3/27 John R Pierce pierce@hogranch.com
i understand you the answer machine name could not resolved
27 Mart 2010 22:01 tarihinde cahit Eyigünlü cahit.eyigunlu@gmail.comyazdı: