LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-02-2004, 08:30 AM   #1
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Rep: Reputation: 0
Dynamic route determination not working 10.0


I am connected to a windows network at work. The problem I am having is that the system can't determine the routes to the gateway and the proxy server. I can "see" the DNS server and get an IP address from DHCP, but nothing else. If I manually add the routes to the table, I can connect to the net no problems, but how to I get MLinux to automatically determine the routes the way Windows XP does when I boot windows? And if I am unable to do this, how do I permanently add the two needed routes for booting my notebook at work, and then take them away when I work from home in the simplest of methods? (I'm WAY new to Linux, but I understand networking a little bit!)

Basically, at work we have a DNS server, a gateway, and a proxy server. Unless I add the routes to the table myself, I can't see the gateway or the proxy servers. Once I add them, I can connect to the internet OK. Windows does this automatically, though, and I would think MLinux could be configured to do the same...

One thing to eliminate as a problem is my network adapter. I can connect to the internet just fine at home where there is no gateway and/or proxy server.

Thoughts?
 
Old 09-03-2004, 07:14 AM   #2
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
Windows XP is able to determine routes to both the gateway and the proxy server from, I am guessing here, the DNS server. It then sets up the routes dynamically.

Why doesn't Mandrake get/use this information? Is it possible that the Windows network won't send it when it detects a non-windows machine? Or is it more likely that MLinux gets the information but does nothing with it? Any direction here would be much appreciated.
 
Old 09-03-2004, 07:16 AM   #3
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
The other difficulty I am having is making the static routes persistent. I added them to the "static-routes" file using the format described on the net in some other forums, but they don't come back when I reboot. I also haven't got any error messages in bootlog related. Can someone point me in a direction?
 
Old 09-03-2004, 08:16 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
if u added routes with correct syntax in static-routes file, it must work. at least it works on redhat, fedora distros.

u can add routing commands in /etc/rc.d/rc.local file. the lines in this file will work every boot after all services started.

u may check network files to search trouble.
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth(x)
 
Old 09-04-2004, 08:05 AM   #5
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
First, thanks for replying. I appreciate it.

Second, do you know why WinXP can automatically determine the gateway and proxy servers during bootup and Linux cannot?

Third, is there some setting I am missing in my network config that prevents me from dynamically setting the routing table during boot?

I ask because ideally I would like to avoid statically setting the routes during boot b/c I move my system around to different networks is all.
 
Old 09-06-2004, 02:06 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
i dont know the answer. i never prefer M$ windows as server, especially proxy and internet based server.
i dont know about your distro well. but it is redhat similar. u can check network configuration.
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-xxx
check these files if there is any GATEWAY defined.

good luck
 
Old 09-10-2004, 02:56 AM   #7
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks again, maxut.

I'm trying to figure out why my routes don't re-add when I put them in static-routes, but no luck yet. I'll keep looking for the solution.
 
Old 09-10-2004, 05:06 AM   #8
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
post the output of
ifconfig
route -n
cat /etc/sysconfig/network
cat /etc/sysconfig/network-scripts/ifcfg-eth0

let me check your configuration. maybe i can catch the trouble.

good luck
 
Old 09-14-2004, 11:54 PM   #9
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
sorry so late in responding!

route -n output:::

[root@willie thom]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.188.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
[
 
Old 09-14-2004, 11:55 PM   #10
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
ifconfig output:::

root@willie thom]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:3F:6D:03:66
inet addr:192.168.188.176 Bcast:192.168.188.255 Mask:255.255.255.0
inet6 addr: fe80::202:3fff:fe6d:366/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:964 errors:1 dropped:2 overruns:1 frame:0
TX packets:467 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:155918 (152.2 Kb) TX bytes:80559 (78.6 Kb)
Interrupt:10 Base address:0xf000

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:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5892 (5.7 Kb) TX bytes:5892 (5.7 Kb)
 
Old 09-14-2004, 11:57 PM   #11
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
[root@willie thom]# cat /etc/sysconfig/network
HOSTNAME=willie.therawsons.net
NETWORKING=yes
GATEWAY=192.168.191.1
[root@willie thom]#

(I added the GATEWAY line as suggested!)
 
Old 09-14-2004, 11:59 PM   #12
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
[root@willie thom]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:02:3f:6d:03:66
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""
NEEDHOSTNAME=yes
GATEWAY=192.168.191.1
[root@willie thom]
 
Old 09-15-2004, 12:03 AM   #13
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
by the way... is it:

static-hosts

or

static_hosts
 
Old 09-15-2004, 12:12 AM   #14
tallthom
LQ Newbie
 
Registered: Sep 2004
Location: Japan
Distribution: Mandrake 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
It might not be useful, but here is the routing table when I boot to the same connection using Windows XP.


C:\Documents and Settings\Thom>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 90 4b 4d ce fe ...... Broadcom 802.11b/g WLAN - Packet Scheduler Minip
ort
0x3 ...00 02 3f 6d 03 66 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - P
acket Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.191.1 192.168.188.176 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.16.1 255.255.255.255 192.168.191.1 192.168.188.176 20
192.168.188.0 255.255.255.0 192.168.188.176 192.168.188.176 20
192.168.188.176 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.188.255 255.255.255.255 192.168.188.176 192.168.188.176 20
224.0.0.0 240.0.0.0 192.168.188.176 192.168.188.176 20
255.255.255.255 255.255.255.255 192.168.188.176 192.168.188.176 1
255.255.255.255 255.255.255.255 192.168.188.176 2 1
Default Gateway: 192.168.191.1
===========================================================================
Persistent Routes:
None
 
Old 09-15-2004, 02:20 AM   #15
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
actually i didnt mean that u should add gateway line in /etc/sysconfig/network.

try the following simple ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=dhcp
onBOOT=yes
and following network file
Code:
HOSTNAME=willie.therawsons.net
NETWORKING=yes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network suddenly stops working, route freezes nfreeman Linux - Networking 2 10-12-2005 07:39 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 03:17 PM
Network problems in RedHat 9.0 / Determination of IP addresses ... failed smaisnie Linux - Networking 14 05-04-2004 12:11 AM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 12:14 PM


All times are GMT -5. The time now is 08:37 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration