LinuxQuestions.org
Register a domain and help support LQ
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
 
Search this Thread
Old 12-16-2003, 08:07 PM   #1
destin
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 127.0.0.1
with no name server(should i give an IP address <> than 127.0.0.1 ??)

cat /etc/resolve.conf:
search example.org

route -v:
loopback * 255.0.0.0 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 08:09 PM.
 
Old 12-16-2003, 08:13 PM   #2
chort
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 192.168.0.2, then you should give your Linux box 192.168.0.3. You should set the default gateway to 192.168.0.2 (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, 07:37 AM   #3
destin
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, 10:05 AM   #4
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
dude....do 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:
http://www.experts-exchange.com/Netw..._20757024.html

Justin
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 10:56 PM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 03:24 PM
Japanese canna won't work : Warning: &#12363;&#12394;&#28450;&#23383;&#22793;&am OrganicOrange84 Debian 3 06-30-2005 03: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 01:39 PM
Stable IP&Viewing IPs&Spying in LAN mohtasham1983 Linux - Newbie 7 06-15-2005 04:16 PM


All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration