Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-16-2003, 07:07 PM   #1
LQ Newbie
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Rep: Reputation: 15
a LAN && Gateway question

hi, i have a laptop with slack9.1 and a windoz box(which has access to the internet through Dial-Up).I just installed the drivers for ethernet card on laptop but i cannot find drivers for its modem.What i wanna do is setup a LAN between those 2 computers to excange files(but with no samba) and data in general, and use the windoz box as a gateway to access to the internet with my laptop.
if i assign an address to the eth0 in laptop using "ifconfig" i can ping the windoz box but i have to do that after every reboot, else i cannot ping the windoz box(i get the "network unreachable" error).
I used netconfig to do a basic network setup.I choosed static ip
with no name server(should i give an IP address <> than ??)

cat /etc/resolve.conf:

route -v:
loopback * U 0 0 0 lo

ifconfig -a:
eth0 blah..blah
lo blah..blah

How can i solve these problems ??

PS:How do i know with address to assign to the eth0 each time ??

Last edited by destin; 12-16-2003 at 07:09 PM.
Old 12-16-2003, 07:13 PM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
When you do netconfig you need to give it an IP address on the same network as your Windows box. For instance, if the Ethernet card on your Windows box is, then you should give your Linux box You should set the default gateway to (the Windows box), assuming that you have Internet Connection Sharing setup on Windows. Use whatever name servers you have in Windows.
Old 12-17-2003, 06:37 AM   #3
LQ Newbie
Registered: Dec 2003
Distribution: SlackWare / NetBSD
Posts: 24

Original Poster
Rep: Reputation: 15
Yes this work.
If i don't enable "Internet Connection Sharing" in my Windows box is there a way to do what i want using iptables ??
Old 12-17-2003, 09:05 AM   #4
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33 what chort recommends. Set up ICS on the Windows box and set the ipaddress, default gateway and default route on the linux box.

Or, you can tell the slack laptop to use DHCP on the interface. This will probably work much better as ICS acts as a DHCP server as well...or it used to.

run netconfig in slack or directly edit the /etc/rc.d/rc.inet1 file to setup the IP and default router and dns.

Put the nameservers in /etc/resolv.conf.

But, if you set the interface to use DHCP all this will be done for you.

There is a good post at experts-exchange:



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 09:56 PM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 02:24 PM
Japanese canna won't work : Warning: &#12363;&#12394;&#28450;&#23383;&#22793;&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
Stable IP&Viewing IPs&Spying in LAN mohtasham1983 Linux - Newbie 7 06-15-2005 03:16 PM

All times are GMT -5. The time now is 01:04 PM.

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