i am adding routr options with route add -net xxx dev eth0 but when i reset computer it is not in netstat table anymore
I am new on this group :D
2010/3/29 John R Pierce pierce@hogranch.com
cahit Eyigünlü wrote:
i am adding routr options with route add -net xxx dev eth0 but when i reset computer it is not in netstat table anymore
yes, the route command is not persistent. someone explained many posts ago what files to edit to add permanent settings.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I am new on this group :D
Welcome, Don’t top post, and use txt format. You can search archives held in many places, such as http://www.mail-archive.com/centos@centos.org/
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
:D
cahit Eyigünlü wrote:
I am new on this group :D
it was a response to you.
http://lists.centos.org/pipermail/centos/2010-March/092298.html
see 'automatic setup'
i am adding routr options with route add -net xxx dev eth0 but when i reset computer it is not in netstat table anymore
In about five (5) seconds I found this on Google:
Adding Persistent Routes http://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id...
I suppose you would be able to find it too...
2010/3/28 cahit Eyigünlü cahit.eyigunlu@gmail.com:
i am adding routr options with route add -net xxx dev eth0 but when i reset computer it is not in netstat table anymore _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
As someone mentioned, check route-<ethx>. It's handy to look through the ifup/ifdown scripts to see what goes on when you start your network.
-Matt Iavarone
there is sth. different on my network my gateway is on different subnet then my static ip so is this works?
2010/3/29 Matt Iavarone matt.iavarone@gmail.com
2010/3/28 cahit Eyigünlü cahit.eyigunlu@gmail.com:
i am adding routr options with route add -net xxx dev eth0 but when i reset computer it is not in netstat table anymore _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
As someone mentioned, check route-<ethx>. It's handy to look through the ifup/ifdown scripts to see what goes on when you start your network.
-Matt Iavarone _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
cahit Eyigünlü a écrit :
there is sth. different on my network my gateway is on different subnet then my static ip so is this works?
One of the fundamentals of networking - as explained to you a few posts ago - is that your gateway has to be on the same subnet than your IP, or how else could you possibly reach it?
Cheers,
Niki Kovacs
i am reaching the network with this : route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0 route add default gw 217.20.117.1
i have added eth0 address0=217.20.117.1 subnet0=255.255.255.255
the first command is ok but how could i set the second command to cent os to do it automatically
2010/3/29 Niki Kovacs contact@kikinovak.net
cahit Eyigünlü a écrit :
there is sth. different on my network my gateway is on different subnet then my static ip so is this works?
One of the fundamentals of networking - as explained to you a few posts ago - is that your gateway has to be on the same subnet than your IP, or how else could you possibly reach it?
Cheers,
Niki Kovacs _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
cahit Eyigünlü wrote:
i am reaching the network with this : route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0 route add default gw 217.20.117.1
i have added eth0 address0=217.20.117.1 subnet0=255.255.255.255
the first command is ok but how could i set the second command to cent os to do it automatically
If you create a file named /etc/sysconfig/network-scripts/route-eth0 you can put lines in it that will have 'ip route' added at the beginning and executed after the interface is up. "ip route" takes some different arguments than the "route" command - see "man ip" for details.
This is my two line on route-eth0 address0=217.20.117.1 subnet0=255.255.255.255 but what should be next line for default gateway the only thing that i could not complete is default gateway setting and my netstat table must looklike this : 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 xx.xx.xx.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 now i see only the first two line truely i am adding 3rd line on every time restart manually with route add default gw
2010/3/29 Les Mikesell lesmikesell@gmail.com
cahit Eyigünlü wrote:
i am reaching the network with this : route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0 route add default gw 217.20.117.1
i have added eth0 address0=217.20.117.1 subnet0=255.255.255.255
the first command is ok but how could i set the second command to cent os to do it automatically
If you create a file named /etc/sysconfig/network-scripts/route-eth0 you can put lines in it that will have 'ip route' added at the beginning and executed after the interface is up. "ip route" takes some different arguments than the "route" command - see "man ip" for details.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
2010/3/29 cahit Eyigünlü cahit.eyigunlu@gmail.com:
This is my two line on route-eth0 address0=217.20.117.1 subnet0=255.255.255.255 but what should be next line for default gateway the only thing that i could not complete is default gateway setting and my netstat table must looklike this : 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 xx.xx.xx.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 now i see only the first two line truely i am adding 3rd line on every time restart manually with route add default gw
2010/3/29 Les Mikesell lesmikesell@gmail.com
cahit Eyigünlü wrote:
i am reaching the network with this : route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0 route add default gw 217.20.117.1
i have added eth0 address0=217.20.117.1 subnet0=255.255.255.255
the first command is ok but how could i set the second command to cent os to do it automatically
If you create a file named /etc/sysconfig/network-scripts/route-eth0 you can put lines in it that will have 'ip route' added at the beginning and executed after the interface is up. "ip route" takes some different arguments than the "route" command - see "man ip" for details.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Why don't you post the results of 'ifconfig -a' and 'ip route show'? Giving information piecemeal is not helping anyone.
there is no problem with my internet connection i just want that to do this cent os automatically : route add default gw 217.20.117.1 before typing this my netstat -rn looks like this : root@lin3 [~]# netstat -rn (that is not able to connect to internet) 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 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 after adding gateway : (this works perfect) root@lin3 [~]# 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 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 *0.0.0.0 217.20.117.1 0.0.0.0 UG 0 0 0 eth0 *
i just want to add bold line automatically
and this is my ifconfig : root@lin3 [~]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:83:21:44 inet addr:188.72.255.189 Bcast:188.72.255.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe83:2144/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9653 errors:0 dropped:0 overruns:0 frame:0 TX packets:458 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:876648 (856.1 KiB) TX bytes:50814 (49.6 KiB) Base address:0x2000 Memory:d8920000-d8940000
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:483 errors:0 dropped:0 overruns:0 frame:0 TX packets:483 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:75305 (73.5 KiB) TX bytes:75305 (73.5 KiB)
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)
2010/3/29 Matt Iavarone matt.iavarone@gmail.com
2010/3/29 cahit Eyigünlü cahit.eyigunlu@gmail.com:
This is my two line on route-eth0 address0=217.20.117.1 subnet0=255.255.255.255 but what should be next line for default gateway the only thing that i
could
not complete is default gateway setting and my netstat table must looklike this : 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 xx.xx.xx.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 now i see only the first two line truely i am adding 3rd line on
every
time restart manually with route add default gw
2010/3/29 Les Mikesell lesmikesell@gmail.com
cahit Eyigünlü wrote:
i am reaching the network with this : route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0 route add default gw 217.20.117.1
i have added eth0 address0=217.20.117.1 subnet0=255.255.255.255
the first command is ok but how could i set the second command to cent os to do it automatically
If you create a file named /etc/sysconfig/network-scripts/route-eth0 you can put lines in it that will have 'ip route' added at the beginning and
executed
after the interface is up. "ip route" takes some different arguments than the "route" command - see "man ip" for details.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Why don't you post the results of 'ifconfig -a' and 'ip route show'? Giving information piecemeal is not helping anyone. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
So you're saying that your default gateway is an IP address that's part of a *different* network/subnet?
I don't know how this network has been designed, but typically I would expect that your default gateway would be something like
188.72.255.1
rather than 217.20.117.1 that you've mentioned earlier.
Take a look at mine for example:
[~]ifconfig eth0 Link encap:Ethernet HWaddr FE:FD:6D:4A:C1:69 inet addr:109.xx.xxx.105 Bcast:109.74.193.255 Mask:255.255.255.0 inet6 addr: fe80::fcfd:6dff:fe4a:c169/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:78742 errors:0 dropped:0 overruns:0 frame:0 TX packets:67114 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:35442733 (33.8 MiB) TX bytes:12607832 (12.0 MiB)
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:8292 errors:0 dropped:0 overruns:0 frame:0 TX packets:8292 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1195297 (1.1 MiB) TX bytes:1195297 (1.1 MiB)
[~]netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 109.xx.xxx.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 0.0.0.0 109.xx.xxx.1 0.0.0.0 UG 0 0 0 eth0
So you can see my host has .105 assigned to eth0, and the default gateway is .1 of the same network/subnet.
You might want to check that your addressing is correct.
On Mon, 29 Mar 2010, cahit Eyig?nl? wrote:
there is no problem with my internet connection i just want that to do this cent os automatically :route add default gw 217.20.117.1 before typing this my netstat -rn looks like this : root@lin3 [~]# netstat -rn (that is not able to connect to internet) 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 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 after adding gateway : (this works perfect) root@lin3 [~]# 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 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 0.0.0.0 217.20.117.1 0.0.0.0 UG 0 0 0 eth0
i just want to add bold line automatically
and this is my ifconfig : root@lin3 [~]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:83:21:44 inet addr:188.72.255.189 Bcast:188.72.255.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe83:2144/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9653 errors:0 dropped:0 overruns:0 frame:0 TX packets:458 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:876648 (856.1 KiB) TX bytes:50814 (49.6 KiB) Base address:0x2000 Memory:d8920000-d8940000
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:483 errors:0 dropped:0 overruns:0 frame:0 TX packets:483 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:75305 (73.5 KiB) TX bytes:75305 (73.5 KiB)
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)
2010/3/29 Matt Iavarone matt.iavarone@gmail.com 2010/3/29 cahit Eyig?nl? cahit.eyigunlu@gmail.com:
This is my two line on route-eth0 address0=217.20.117.1 subnet0=255.255.255.255 but what should be next line for default gateway the only thing that i could not complete is default gateway setting and my netstat table must looklike this : 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 xx.xx.xx.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 now i see only the first two line truely i am adding 3rd line on every time restart manually with route add default gw
2010/3/29 Les Mikesell lesmikesell@gmail.com
cahit Eyig?nl? wrote:
i am reaching the network with this : route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0 route add default gw 217.20.117.1
i have added eth0 address0=217.20.117.1 subnet0=255.255.255.255
the first command is ok but how could i set the second command to cent os to do it automatically
If you create a file named /etc/sysconfig/network-scripts/route-eth0 you can put lines in it that will have 'ip route' added at the beginning and executed after the interface is up. "ip route" takes some different arguments than the "route" command - see "man ip" for details.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Why don't you post the results of 'ifconfig -a' and 'ip route show'? Giving information piecemeal is not helping anyone. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks rohan but our gateway on 24 ip block so i need to do it on way that i send , unortunately this wont work becuase that is a global ip adress and they can not set a gateway for each 255 block for ex. i have 5 more ip 2 of them is on 78.159.xx.xx block so i need to set default gw to 217.20.117.1
2010/3/29 Rohan Gilchrist rohan@gilchrist.me
So you're saying that your default gateway is an IP address that's part of a *different* network/subnet?
I don't know how this network has been designed, but typically I would expect that your default gateway would be something like
188.72.255.1
rather than 217.20.117.1 that you've mentioned earlier.
Take a look at mine for example:
[~]ifconfig eth0 Link encap:Ethernet HWaddr FE:FD:6D:4A:C1:69 inet addr:109.xx.xxx.105 Bcast:109.74.193.255 Mask:255.255.255.0 inet6 addr: fe80::fcfd:6dff:fe4a:c169/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:78742 errors:0 dropped:0 overruns:0 frame:0 TX packets:67114 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:35442733 (33.8 MiB) TX bytes:12607832 (12.0 MiB)
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:8292 errors:0 dropped:0 overruns:0 frame:0 TX packets:8292 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1195297 (1.1 MiB) TX bytes:1195297 (1.1 MiB)
[~]netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 109.xx.xxx.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 0.0.0.0 109.xx.xxx.1 0.0.0.0 UG 0 0 0 eth0
So you can see my host has .105 assigned to eth0, and the default gateway is .1 of the same network/subnet.
You might want to check that your addressing is correct.
On Mon, 29 Mar 2010, cahit Eyig?nl? wrote:
there is no problem with my internet connection i just want that to do
this cent os automatically :route add default gw 217.20.117.1
before typing this my netstat -rn looks like this : root@lin3 [~]# netstat -rn (that is not able to connect to internet) 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
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
after adding gateway : (this works perfect) root@lin3 [~]# 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
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
0.0.0.0 217.20.117.1 0.0.0.0 UG 0 0 0
eth0
i just want to add bold line automatically
and this is my ifconfig : root@lin3 [~]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:83:21:44 inet addr:188.72.255.189 Bcast:188.72.255.255
Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe83:2144/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9653 errors:0 dropped:0 overruns:0 frame:0 TX packets:458 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:876648 (856.1 KiB) TX bytes:50814 (49.6 KiB) Base address:0x2000 Memory:d8920000-d8940000
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:483 errors:0 dropped:0 overruns:0 frame:0 TX packets:483 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:75305 (73.5 KiB) TX bytes:75305 (73.5 KiB)
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)
2010/3/29 Matt Iavarone matt.iavarone@gmail.com 2010/3/29 cahit Eyig?nl? cahit.eyigunlu@gmail.com:
This is my two line on route-eth0 address0=217.20.117.1 subnet0=255.255.255.255 but what should be next line for default gateway the only thing that i
could
not complete is default gateway setting and my netstat table must looklike this : 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 xx.xx.xx.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 now i see only the first two line truely i am adding 3rd line on
every
time restart manually with route add default gw
2010/3/29 Les Mikesell lesmikesell@gmail.com
cahit Eyig?nl? wrote:
i am reaching the network with this : route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0 route add default gw 217.20.117.1
i have added eth0 address0=217.20.117.1 subnet0=255.255.255.255
the first command is ok but how could i set the second command to
cent
os to do it automatically
If you create a file named /etc/sysconfig/network-scripts/route-eth0
you
can put lines in it that will have 'ip route' added at the beginning and
executed
after the interface is up. "ip route" takes some different arguments than
the
"route" command - see "man ip" for details.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Why don't you post the results of 'ifconfig -a' and 'ip route show'? Giving information piecemeal is not helping anyone. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 3/29/2010 8:09 AM, cahit Eyigünlü wrote:
This is my two line on route-eth0 address0=217.20.117.1 subnet0=255.255.255.255 but what should be next line for default gateway the only thing that i could not complete is default gateway setting and my netstat table must looklike this : 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 xx.xx.xx.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 now i see only the first two line truely i am adding 3rd line on every time restart manually with route add default gw
If you want to use that syntax, you can probably add: GATEWAY1=217.20.117.1 NETMASK1=0.0.0.0 ADDRESS1=0.0.0.0
Or this should work instead: default via 217.20.117.1 dev eth0
But, I'd consider looking for a different service provider that does networking in a more standard way. If they have to overlay subnets, they could at least assign an IP within each one on the gateway device so a standard configuration would be able to reach it.
GATEWAY1=217.20.117.1 that does not worked
2010/3/29 Les Mikesell lesmikesell@gmail.com
On 3/29/2010 8:09 AM, cahit Eyigünlü wrote:
This is my two line on route-eth0 address0=217.20.117.1 subnet0=255.255.255.255 but what should be next line for default gateway the only thing that i could not complete is default gateway setting and my netstat table must looklike this : 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 xx.xx.xx.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 now i see only the first two line truely i am adding 3rd line on every time restart manually with route add default gw
If you want to use that syntax, you can probably add: GATEWAY1=217.20.117.1 NETMASK1=0.0.0.0 ADDRESS1=0.0.0.0
Or this should work instead: default via 217.20.117.1 dev eth0
But, I'd consider looking for a different service provider that does networking in a more standard way. If they have to overlay subnets, they could at least assign an IP within each one on the gateway device so a standard configuration would be able to reach it.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 3/29/2010 10:50 AM, cahit Eyigünlü wrote:
GATEWAY1=217.20.117.1 that does not worked
Did you add those lines after the ones you said had worked to give you the host route to 217.20.117.1? You can't add a gateway until you have a route to it.
What about the alternative I suggested of: default via 217.20.117.1 dev eth0
You may have to wade through the /etc/sysconfig/network-scripts/ifup-routes script to figure out the right syntax. (And maybe you can't mix the different syntaxes in the same file...).
it seems like a good solution but i could not figure out how to make this :D
2010/3/29 Les Mikesell lesmikesell@gmail.com
On 3/29/2010 10:50 AM, cahit Eyigünlü wrote:
GATEWAY1=217.20.117.1 that does not worked
Did you add those lines after the ones you said had worked to give you the host route to 217.20.117.1? You can't add a gateway until you have a route to it.
What about the alternative I suggested of: default via 217.20.117.1 dev eth0
You may have to wade through the /etc/sysconfig/network-scripts/ifup-routes script to figure out the right syntax. (And maybe you can't mix the different syntaxes in the same file...).
-- Les Mikesell lesmikesell@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos