Internet connection via windows xp network (rj45 cable) on Linux
Well I've summed it all up in the subject.
I've used to had a dialer, but the ISP has blocked the option of connecting from same username in 2 computers (the modem has 2 connections). Anyway, Now I have to use to connect via XP-network. Well Infact, it was quite simple thing in (my comp xp) all I did was open firefox + detect network settings automatically and bang. internet is on. How can I do the same at my linux? Little graph so you can understand comp1 : Windows XP, Direct internet connection --> On. comp2: Windows XP, connected to comp1 via network and got its internet access. --> on. Linux Fedora FC4 (Boot Loader) : --> How do I set up this internet connection via comp1? Thanks alot guys. |
You need to route traffic using the Windows PC. Then you just configure your own network interface's route, something like this:
route add default gw xxx.xxx.xxx.xxx The xxx are of course the Windows internal IP number. |
Quote:
Thanks. |
Of course, just use
route del default gw xxx.xxx.xxx.xxx Also you can just modify the Windows PC LAN IP number and configure the router to the IP address defined previously as default gateway. |
Code:
Microsoft(R) Windows DOS Code:
#root: route add default gw 192.168.0.1 any advises? thanks |
Please send your Linux ifconfig output
|
I assume that you have comp1 configure for internet connection sharing. This automatically configures the ethernet adapter you specified for the LAN with an IP address of 192.168.0.1. I assume the ipconfig output you posted was from comp1.
Configure comp2 for DHCP and set the gateway IP address to 192.168.0.1. |
Quote:
I've tryed those route stuff and then, when I switched cables to the direct connect to the internet cable via modem, it didn't want to connect so I've done ifdown eth1 ifup eth1 so far all good done cable-start connected. but couldn't surf somehow (none at all, not firefox problem but gaim didn't work aswell etc) although cable-status said that I'm connected. I've done cable-stop switched back cables then tryed to add again the 192.168.0.1 as my gw (in route add) and it didn't work since "network is unreachable" done ifdown eth1 then ifup eth1 and it couldn't resolv ip for it, also after restart, I cannot set up the eth1 now... OH MY GOD shall I format? :( |
Quote:
:newbie: |
Quote:
but when I switch to the other computer, what shall I do? blahh |
To setup your internet connection via GUI
From the main menu: Applications > system controls > Network Device Control Select configure and click on edit in the control panel. Select DHCP. Since the XP box is acting as a DHCP sever the gateway and DNS info will be automatically updated on the linux box. And activate the device |
Quote:
Quote:
ifso, shouldn't I do the route add default gw 192.168.0.1? would it work? :newbie: Thanks |
There is button in the GUI configuration box that will activate the eth1.
Since the ethernet adpater is configured for DHCP the gateway should automatically be configured. This should be the easist method. |
Quote:
maybe cause i messed up my default gw :S can\t connect directly aswell now cause he says "something is fishy with your route table" |
So what does your route table look like now? Post the output of the route command.
|
All times are GMT -5. The time now is 09:35 AM. |