routing table question
sorry to have recycled the subjectreal question below. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Tony Uceda Velez [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:15 PM To: [EMAIL PROTECTED] Subject: RE: SSH/Putty password problem where are the routing tables stored persistently in debian? Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com
Re: routing table question
On Fri, 24 Sep 2004 17:16:15 -0400, Tony Uceda Velez wrote: sorry to have recycled the subjectreal question below. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Tony Uceda Velez [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:15 PM To: [EMAIL PROTECTED] Subject: RE: SSH/Putty password problem where are the routing tables stored persistently in debian? You can see it with the following command: #route -n shows the actual routing table #ip route show also do the thing. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com Ing. Sergio Basurto Juárez Tel: 04455-85322945
RE: routing table question
right but is there a route.conf like there is in suse. there has to be a place where you can store routes besides in memory. doing a route add simply stores in memory and a reboot clears the routing table. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Sergio Basurto [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:48 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: routing table question On Fri, 24 Sep 2004 17:16:15 -0400, Tony Uceda Velez wrote: sorry to have recycled the subjectreal question below. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Tony Uceda Velez [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:15 PM To: [EMAIL PROTECTED] Subject: RE: SSH/Putty password problem where are the routing tables stored persistently in debian? You can see it with the following command: #route -n shows the actual routing table #ip route show also do the thing. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com Ing. Sergio Basurto Juárez Tel: 04455-85322945
RE: routing table question
On Fri, 24 Sep 2004 17:51:01 -0400, Tony Uceda Velez wrote: right but is there a route.conf like there is in suse. there has to be a place where you can store routes besides in memory. doing a route add simply stores in memory and a reboot clears the routing table. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Sergio Basurto [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:48 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: routing table question On Fri, 24 Sep 2004 17:16:15 -0400, Tony Uceda Velez wrote: sorry to have recycled the subjectreal question below. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Tony Uceda Velez [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:15 PM To: [EMAIL PROTECTED] Subject: RE: SSH/Putty password problem where are the routing tables stored persistently in debian? You can see it with the following command: #route -n shows the actual routing table #ip route show also do the thing. What exactly are you triying to do, if you want that your default gw apears the next time you boot your machine you must configure this at: /etc/network/interfaces or be more explicit... Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com
RE: routing table question
I would add some 'up' statements to my /etc/network/interfaces, like: iface eth0 inet static address 10.x.y.z netmask 255.255.255.0 network 10.x.y.0 broadcast 10.x.y.255 up route add -net 1.2.3.4 down route del -net ... Sincerely, Jan On Fri, 2004-09-24 at 23:51, Tony Uceda Velez wrote: right but is there a route.conf like there is in suse. there has to be a place where you can store routes besides in memory. doing a route add simply stores in memory and a reboot clears the routing table. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Sergio Basurto [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:48 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: routing table question On Fri, 24 Sep 2004 17:16:15 -0400, Tony Uceda Velez wrote: sorry to have recycled the subjectreal question below. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com -Original Message- From: Tony Uceda Velez [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 5:15 PM To: [EMAIL PROTECTED] Subject: RE: SSH/Putty password problem where are the routing tables stored persistently in debian? You can see it with the following command: #route -n shows the actual routing table #ip route show also do the thing. Tony UcedaVélez Security Analyst [EMAIL PROTECTED] 877.884.1110 -- SecureWorks. Rock-solid Internet security. No hassles. No headcount. No capital outlay. -- http://www.secureworks.com Ing. Sergio Basurto Juárez Tel: 04455-85322945
Routing table question
Hi all: I'm reading TCP/IP Administration by O'Reily, and have a question on the routing table on my Debian box. It's quite simple: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 209.226.71.00.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 209.226.71.10.0.0.0 UG0 0 0 eth1 I have 2 nics in my computer. eth0 is connected to another computer (local net), and has IP 192.168.1.2, and another one is connected to the internet with DHCP. My question is: why is the local network bound to default gateway? Shouldn't 192.168.1.0 be bound to 192.168.1.2? I suspect that I misunderstand something, since the computers are able to comunicate. Any input highly appreciated, -- Arcady Genkin ... without money one gets nothing in this world, not even a certificate of eternal blessedness in the other world... (S. Kierkegaard)
Re: Routing table question
On Wed, Jul 28, 1999 at 05:50:03PM -0400, Arcady Genkin wrote: Hi all: I'm reading TCP/IP Administration by O'Reily, and have a question on the routing table on my Debian box. It's quite simple: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 209.226.71.00.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 209.226.71.10.0.0.0 UG0 0 0 eth1 I have 2 nics in my computer. eth0 is connected to another computer (local net), and has IP 192.168.1.2, and another one is connected to the internet with DHCP. My question is: why is the local network bound to default gateway? Shouldn't 192.168.1.0 be bound to 192.168.1.2? The default is for addresses whose routes are not specified by the routing table. Packets destined for any computer with an IP in the 192.168.1.0 network will be sent out eth0. Everything else will go out the (default) eth1. I suspect that I misunderstand something, since the computers are able to comunicate. Any input highly appreciated, Hope this made some sense. -- David H. Silber -- http://www.orbits.com/~dhs/ -- [EMAIL PROTECTED] For custom software, see:http://www.SilberSoft.com/ Palm OS / Linux Documentation: http://www.orbits.com/Palm/
Re: Routing table question
David H. Silber [EMAIL PROTECTED] writes: I'm reading TCP/IP Administration by O'Reily, and have a question on the routing table on my Debian box. It's quite simple: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 209.226.71.00.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 209.226.71.10.0.0.0 UG0 0 0 eth1 I have 2 nics in my computer. eth0 is connected to another computer (local net), and has IP 192.168.1.2, and another one is connected to the internet with DHCP. My question is: why is the local network bound to default gateway? Shouldn't 192.168.1.0 be bound to 192.168.1.2? The default is for addresses whose routes are not specified by the routing table. Packets destined for any computer with an IP in the 192.168.1.0 network will be sent out eth0. Everything else will go out the (default) eth1. David, thanks for your reply. I still don't understand something. Doesn't the line: 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 mean send everything addressed to IP's 192.168.1.* through default gateway? But this way the kernel will be sending communications for 192.168.1.1 through 209.226.71.1. So I must be wrong in translating the line above... -- Arcady Genkin ... without money one gets nothing in this world, not even a certificate of eternal blessedness in the other world... (S. Kierkegaard)
Re: Routing table question
Arcady Genkin wrote: I still don't understand something. Doesn't the line: 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 ^^^ Don't let those 0s confuse you. That means there is not gateway defined for that route. Also look in the fourth column. In your default gateway route you see 'UG'. the 'G' means gateway. Above there is only 'U'. Which means the route is up. The line actually says send all packets destined for 192.168.1.x out on eth0. -- Paul Miller [EMAIL PROTECTED] Where do all the bits go when the computer is done with them?
Re: Routing table question
Paul Miller [EMAIL PROTECTED] writes: I still don't understand something. Doesn't the line: 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 ^^^ Don't let those 0s confuse you. That means there is not gateway defined for that route. Also look in the fourth column. In your default gateway route you see 'UG'. the 'G' means gateway. Above there is only 'U'. Which means the route is up. Paul, thanks a lot for your reply. I got confused by the following phrase in the book: The default route is the other reserved network number mentioned earlier: 0.0.0.0. The line actually says send all packets destined for 192.168.1.x out on eth0. Thanks again. p.s. I apologize if I sent you this message twice. Hit the wrong shortcut. ;^[ -- Arcady Genkin ... without money one gets nothing in this world, not even a certificate of eternal blessedness in the other world... (S. Kierkegaard)
Re: Routing table question
On Wed, Jul 28, 1999 at 06:07:55PM -0400, Arcady Genkin wrote: David H. Silber [EMAIL PROTECTED] writes: The default is for addresses whose routes are not specified by the routing table. Packets destined for any computer with an IP in the 192.168.1.0 network will be sent out eth0. Everything else will go out the (default) eth1. David, thanks for your reply. I still don't understand something. Doesn't the line: 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 mean send everything addressed to IP's 192.168.1.* through default gateway? But this way the kernel will be sending communications for 192.168.1.1 through 209.226.71.1. So I must be wrong in translating the line above... It means send everything addressed to IP's 192.168.1.* through the specified interface, in this case, eth0. -- David H. Silber -- http://www.orbits.com/~dhs/ -- [EMAIL PROTECTED] For custom software, see:http://www.SilberSoft.com/ Palm OS / Linux Documentation: http://www.orbits.com/Palm/
Re: Routing table question
David H. Silber [EMAIL PROTECTED] writes: I still don't understand something. Doesn't the line: 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 mean send everything addressed to IP's 192.168.1.* through default gateway? But this way the kernel will be sending communications for 192.168.1.1 through 209.226.71.1. So I must be wrong in translating the line above... It more means send everything addressed to a host on the 192.168.1.0/24 network to -no- gateway. The gateway column specifies which machine to gateway through, so should be host addresses, not network addresses. 0.0.0.0 does not mean default, but rather none. Perhaps a bigger example will make it clearer... (Abbreviated) routing table: Destination Gateway Iface 192.168.1.0/24 0.0.0.0 eth0 192.168.2.0/24 192.168.1.254(eth0) 192.168.3.0/24 192.168.1.253(eth0) 209.226.71.0/24 0.0.0.0 eth1 0.0.0.0/0209.226.71.1 (eth1) This is your setup, but I've added two more local nets that have gateways on the 192.168.1.0 network. The interfaces in parenthesis are computed by the routing algorithm, not set by route or ifconfig. If you send a packet to 192.168.1.34, the routing algorithm would see that you have a direct connection (no gateway) to 192.168.1.0/24, which is the network for your destination, so it would know to send through the eth0 interface directly to 192.168.1.34. If you send a packet to 192.168.2.34, the routing algorithm would see that 192.168.1.254 is the gateway, and it's precomputed that the gateway is on eth0, so it would send your packet for ...2.34 to ...1.254 on eth0. Similarly, a packet to ...3.34 would be sent to ...1.2553 on eth0. Presumably, the two gateways would forward it along. If you sent a packet to 208.4.23.5, the routing algorithm would see that there is no defined route to that machine, so it uses the default route, and sends it to 209.226.71.1 for forwarding. Clearer? -- Arcady Genkin ... without money one gets nothing in this world, not even a certificate of eternal blessedness in the other world... (S. Kierkegaard) -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Buddha Buck [EMAIL PROTECTED] Just as the strength of the Internet is chaos, so the strength of our liberty depends upon the chaos and cacaphony of the unfettered speech the First Amendment protects. -- A.L.A. v. U.S. Dept. of Justice