Guest mhbell Posted August 23, 2003 Report Share Posted August 23, 2003 Conflict between Modem and Network MDK 9.0 Some background first. My External Modem will connect to my ISP(Dialup Connection) But would not let me Surf the net or pick up e-mail no matter which Browser or e-mail client I used. I found that by Deactivating my Ethernet card and network that my dialup connection works properly. I have to deactivate the network in order to use my dialup connection to surf the internet or pick up e-mail. My Network This computer is Dual boot with windows XP and MDK 9.0 it is a client machine hooked to 2 other computers through a D-Link 704P Router 4 port hub. The router assigns all computers their IP address through the routers own DHCP server. (This can be disabled if needed) Each computer has it's own modem and phone line and connects to the Inet independently of the network. The network (lan) is only used for sharing files and information. . Everything works like it should when I boot to Windows XP But when I boot to MDK 9.0 If I don't disable the network in the control panel connections, My External serial modem will connect to my ISP, But I can't surf or pick up e-mail Until I deactivate the Network. see below Here are some of the things that I have done. Reinstalled MDK 9.0 Work station & Internet (minimal install) (did not configure Eth0) Done this so I could boot up and not have the modem network conflict. Unchecked all start up process that I felt were not needed. Removed the firewall. Removed all unused server software. No Joy still the same thing. I am sorry this is such a long post but felt that the more info supplied the better to solve the problem. All help and advise would be appreciated. I would like to get this problem resolved so I can have my Lan work happyly with my Dialup and internet. TIA Mel Registered Linux User #239772 Quote Link to comment Share on other sites More sharing options...
tyme Posted August 23, 2003 Report Share Posted August 23, 2003 if you're using the network card to share the internet connection i would suggest running the internet sharing wizard in MCC. the problem you're having is that your computer thinks the ethernet is the main internet connection, and is trying to use that. Quote Link to comment Share on other sites More sharing options...
Guest mhbell Posted August 23, 2003 Report Share Posted August 23, 2003 if you're using the network card to share the internet connection i would suggest running the internet sharing wizard in MCC. the problem you're having is that your computer thinks the ethernet is the main internet connection, and is trying to use that. Perhaps you did not read my post close enough. I said that each computer had its own modem and dialup connection and that the Lan was only used for sharing files and information. :wink: Thanks for the reply Mel Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted August 25, 2003 Report Share Posted August 25, 2003 Forgive me if I'm a little vague here, but I can't boot into Linux right now. Look to see in /etc/sysconfig/network-scripts for ifcfg-eth0 and make sure that it does not have a line that says [something] = dhcp, but rather [something] = static (I think that [something] is 'protocol'(?) or maybe 'proto'(?)) and then put the ip address you want for it in there. Then see if you can activate eth0 with ifup eth0 and still surf the net. It sounds like you are by default using dhcp to set up your ip address for the ethernet card and dhcp is somehow messing with your /etc/resolv.conf I hope this makes some sense. Quote Link to comment Share on other sites More sharing options...
bvc Posted August 25, 2003 Report Share Posted August 25, 2003 look through linuxconf>Networking and see if you can find anything that indicates eth0 over ppp0. I currently have the same prob, but have not touched mcc's ics, and I could browse with my modem before trying to config my eth0/network :roll: . I've checked /etc/ppp/options and resolv.conf and /etc/resolv.conf and they're fine......weird...I haven't looked at any scripts in /etc/sysconfig/network-scripts. If I figure out my prob....maybe it'll be yours and I'll post back :roll: Quote Link to comment Share on other sites More sharing options...
Guest mhbell Posted August 25, 2003 Report Share Posted August 25, 2003 look through linuxconf>Networking and see if you can find anything that indicates eth0 over ppp0. I currently have the same prob, but have not touched mcc's ics, and I could browse with my modem before trying to config my eth0/network :roll: . I've checked /etc/ppp/options and resolv.conf and /etc/resolv.conf and they're fine......weird...I haven't looked at any scripts in /etc/sysconfig/network-scripts. If I figure out my prob....maybe it'll be yours and I'll post back :roll: Mine was a route forwarding problem. by Default MDK assumes that if you have a Lan (Network) you are going to use it to connect to and access the internet. Even if you configure for a modem with KPPP it will not work unless you have route forwarding. here is a simple explanation: for all these cases: only network up, both up, only modem up. This is a routing issue (likely). When u connect the modem, the default route is still via the network and therefore internet access thru the modem is not possible. When u disable the network, the modem now gets to set the new default route. By having route forwarding or ICS the problem is resolved.. Mel :lol: Quote Link to comment Share on other sites More sharing options...
bvc Posted August 26, 2003 Report Share Posted August 26, 2003 Thanks!!! :) I configured ics and, almost, all is well. I can even ping from win98 but the browsers won't go anywhere. But that's another prob :wink: I had not gotten that far yet cause I'm always in debian :wink: Quote Link to comment Share on other sites More sharing options...
PeterPanic Posted August 27, 2003 Report Share Posted August 27, 2003 Hi all! I have exactly the opposite problem: The ICS obviously keeps me from having a working LAN. My Samba/LAN eth0 (192.168.1.59) only works, when I disable the ICS in the MCC and when my DSL connection is down. Whenever I reboot or restart the DSL (usually after reconfiguring it, otherwise it won't work at all), the LAN Clients (Win9x - Samba) can't reach the server shares any more. I tried without shorewall (Stop service in MCC - Services)... An other problem: When I use the MCC to setup Network and Internet and activate ADSL and LAN, I'm asked about my DNS and my Gateway IP and device. This PC IS the gateway. I could use the DNS of my ISP on the DSL card (eth1 at 192.168.2.1), But what's the Gateway and the device? OK, please help me, it's really URGENT. (Company server) Thanks, PeterPanic Quote Link to comment Share on other sites More sharing options...
roland Posted August 29, 2003 Report Share Posted August 29, 2003 Warning: I'm not a specialist at all. Just some ideas: - can you ping other pcs on the local network ? ADSL and LAN, I'm asked about my DNS and my Gateway IP and device. This PC IS the gateway. I could use the DNS of my ISP on the DSL card (eth1 at 192.168.2.1), But what's the Gateway and the device? - leave the Gateway empty. - 192.168.2.1 looks like a local DNS IP, _not_ a ISP DNS server IP - When i have problem I use to uninstall and réinstall stuff one by one checking them at each step ( may be bad M$ Win habit :? ). - Shorewall use to block Samba file sharing. To fix that I did that: change /etc/shorewall/policy that way: ############################################################################### #SOURCE DEST POLICY LOG LEVEL LIMIT:BURST masq net ACCEPT fw net ACCEPT #rv masq fw ACCEPT #<=== HERE fw masq ACCEPT #<=== AND HERE #fin rv net all DROP info all all REJECT info ############################################################################### relaunch all, shorewall should not block samba any more. I'm not sure it is very safe, but a man here ( ranger ) told me it should be ok. hope this help roland Quote Link to comment Share on other sites More sharing options...
bvc Posted August 30, 2003 Report Share Posted August 30, 2003 The ICS obviously keeps me from having a working LAN. My Samba/LAN eth0 (192.168.1.59) only works, when I disable the ICS in the MCCI think I have the same prob, but for now I'm contributing it to being new to samba and not doing something rt. You've got me wondering now. Every time I configured ics either, autoconfig or manual, the config tool would remove my ppp profile EVEN THOUGH I said I connected to the internet via ppp+ :roll: , bouncing back and forth and being fed-up here's what I did. Disable dhcpd and used static ip's, and then configured wvdial for ppp0. All is well, except samba. When the ML9.1 client boots, I get an error that eth0 could not be brought up, but at kde login, it's up, though not connected til the internet is connected. Weird. Note: I'm a network newbie, and haven't a clue :wink: The gateway can ping the client, but the client can't ping the gateway....even weirder...ics works :? Quote Link to comment Share on other sites More sharing options...
fdservices Posted August 31, 2003 Report Share Posted August 31, 2003 This is a routing problem. Mandrake 9.0 defaults to a network internet connection. I think the answer is to remove the default route entry. Check man route for details. Andrew Quote Link to comment Share on other sites More sharing options...
afunke Posted August 31, 2003 Report Share Posted August 31, 2003 This is a routing problem. Mandrake 9.0 defaults to a network internet connection. I think the answer is to remove the default route entry. Check man route for details.Andrew That's correct. The eth0 interface is already active by the time the ppp0 interface is activated by kppp, and pppd will not set the default route to the Dialup modem interface if it finds an already existing "default" route pointing somewhere else. Check the route by running the following command as the root user: route You'll be able to see several routes, and one of them is probably similar to: default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 You may fix the problem (temporarily until next boot) by running the following command, as root, BEFORE you connect to your ISP: route --del default The permanent fix is to create a script that runs the command above just before KPPP dials to the ISP, make that an eXecutable script and either call KPPP from it or "teach" kppp to run it before connecting using kppp's configuration gui/wizard. This can be accomplished by typing the following script in a text editor, saving it as "Internet.sh": #!/bin/sh route --del default Make the script executable, and give the script superuser rights with the following commands, run as root: chmod +x Internet.sh chmod +s Internet.sh Configure Kppp to run this "program" before connecting... Of course you may find another way to accomplish this (route command must be run as root, while Kppp can be run as normal user, unless you wish to bring kppp up as root as well, that's a bit simpler but riskier...). :) Quote Link to comment Share on other sites More sharing options...
PeterPanic Posted September 5, 2003 Report Share Posted September 5, 2003 - leave the Gateway empty. You CAN'T leave the Gateway empty (MDK9.0)! That's one of many of my problems. - 192.168.2.1 looks like a local DNS IP, _not_ a ISP DNS server IP That's the IP of the eth1-Card on my system. Whith this card I connect to a DSL-Modem (Without Router, The Modem doesn't have an IP) (I'll post more replies soon... No time right now.) Thanks, PeterPanic Quote Link to comment Share on other sites More sharing options...
roland Posted September 5, 2003 Report Share Posted September 5, 2003 - leave the Gateway empty. You CAN'T leave the Gateway empty (MDK9.0)! That's one of many of my problems. Thats a MDK9.0 bug edit /etc/sysconfig/network and delete the line "GATEWAY=...." roland Quote Link to comment Share on other sites More sharing options...
PeterPanic Posted September 5, 2003 Report Share Posted September 5, 2003 Thats a MDK9.0 bugedit /etc/sysconfig/network and delete the line "GATEWAY=...." Are those bugs corrected in 9.1? (I've got the 9.1 CDs here since yesterday and wonder if I should upgrade... Can this upgrade threaten stability of my running server? (Samba is MOST important to me...) Thanks,... Peter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.