LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2005, 08:42 PM   #1
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
networking qn's Slack specific


Networking has always confused me for some silly reason. This is very newbie-ish but I am seeking some info regarding my setup in a hope to get off the ground and pop my network cherry - so to speak.

My setup contains an adsl connection to a 'D-Link' DSL-G604T router/modem which has 4 straight through connections and 2 wireless conections available. The connection to my provider is dhcp.

At the moment I have the D-Link connected to two computers with a dhcp setting to give a generic 10.1.1.X ipaddress on straight through cables. Also I have a laptop with a wireless connection.

What I would like to do is change the settings of the D-Link to give the two straght through computers a static ip address (IE: my computer 10.1.1.2 and kids computer 10.1.1.3). This will allow me to experiment with NFS (Slackware on my comp, Vector on kids) and also Samba as the kids comp has Xp for games.

Hopefully I can then experiment with networking and learn more about it. Eventually I will set up a Server but this is down the track once I understand more.

I have read websites, man pages and googled, but when it gets to the crunch, I just don't seem to get it. I would appreciate any help you can give.

Cheers
 
Old 07-18-2005, 08:51 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
you need to go to the settings-page of your router.
just type the ip nr. ( 10.1.1.X ) in a browser.

i think there you can specify to use dhcp, or static ip.
you might need the mac adresses of your used nic.'s.
( you can find that by typing " ifconfig " )

egag
 
Old 07-18-2005, 10:52 PM   #3
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Original Poster
Rep: Reputation: 30
Hi Egag,

I can do both. Have accessed settings on router, and can change between static and dhcp. Also have mac address for nic. Question is where to put it?

My routers address is 10.1.1.1
My mac address on my computer is 00:01:80:36:5d:e0

Obviously I need to have all the info before doing this, because when I switch over to static ....... I don't have an internet connection until it is set up or I reverse what I have done. The wireless and dhcp lan settings are easy for me to understand, but when I get to static I seem to be lost.

Last edited by aikidoist72; 07-19-2005 at 05:07 PM.
 
Old 07-18-2005, 11:16 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Actually I find it easier to use static ips

You've basically to know your router's IP. Then assign each of your computer a IP in the same range and netmask. Also set it as your gateway in the clients.
Quote:
The default IP address is 192.168.0.2 with a subnet mask of 255.255.255.0. You may enter a local domain name for the LAN network if you prefer.
Assuming you use the default one, you can assign each of your computers a ip of 192.168.0.X (.3, .4, etc) and 255.255.255.0 as netmask. Point the IP of your router as Gateway and you're done
You can modify all those variables in /etc/rc.d/rc.inet1.conf in Slackware clients.


Last edited by gbonvehi; 07-18-2005 at 11:17 PM.
 
Old 07-19-2005, 01:03 AM   #5
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Original Poster
Rep: Reputation: 30
Thankyou for a quick reply!!

I changed the dhcp to static, and added my ip 10.1.1.2 to the list.

So here is the entry for rc.inetd.conf
Quote:
# Config information for eth0:
IPADDR[0]="10.1.1.2"
NETMASK[0]="255.0.0.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
the gateway down the bottom of the file is 10.1.1.1 - same as the routers ip.

I can get Slackware to say eth0 is 10.1.1.2 but I have no internet access. I can ping 10.1.1.1

If I use static ip's do I need to utilize the filters within the router? I have never needed to worry about them under dhcp, so am unsure whether to touch these.

Cheers
 
Old 07-19-2005, 01:26 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
What do you mean by filters?

Can you ping a external machine using it's IP address? Try: ping 216.239.57.99 (it's google.com's IP).

What IP and netmask did you gave to your router? Remember your machines should have the same range.
 
Old 07-19-2005, 02:40 AM   #7
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Original Poster
Rep: Reputation: 30
Here is my process

1) Choose "No DHCP" in the router dhcp settings
2) Check settings on router

LAN
MAC Address 00:11:95:96:02:87
IP Address 10.1.1.1
Subnet Mask 255.0.0.0
DHCP Server Disabled
NAT Enabled

3) Alter the rc.inted.conf file
# Config information for eth0:
IPADDR[0]="10.1.1.2"
NETMASK[0]="255.0.0.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

gateway="10.1.1.1"

Explanation of the filters
Filters
Filters are used to allow or deny LAN or WAN users from accessing the internet or internal Network.

There are inbound , outbound, and access list wich allows you to put in your mac address' but this seems to crash the router .

Will try to ping now
 
Old 07-19-2005, 02:50 AM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
The network mask needs to match some rules depending on the IP range you choose (it's a mathematical thing ).
You can understand more about this here: http://www1.avaya.com/enterprise/app...addr_tutor.pdf

So you should use as your router ip: To use the ip range 10.1.1.X you should set the netmask to 255.255.0.0

The configuration appears to be fine, change the network mask and try again.

Last edited by gbonvehi; 07-19-2005 at 02:54 AM.
 
Old 07-19-2005, 04:02 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,815

Rep: Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958
With this IP range, 255.0.0.0, 255.255.0.0, 255.255.255.0 are valid netmasks
(This is a class A network).

I would try to add the IP of the router in /etc/resolv.conf
as the router provides DNS relay :
Code:
nameserver  10.1.1.1
 
Old 07-19-2005, 04:10 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You're right keefaz, I should pay more attention to what I say while I'm doing other things.
Anyway, it's a good reading

I guess we can know if it's a DNS problem when he answers if he could ping a IP, which if that was the case, he already have the solution
 
Old 07-19-2005, 10:46 AM   #11
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Original Poster
Rep: Reputation: 30
Hi guys,

Back on-line again....................Sorry for delay!

Yes I could ping google, but only ping. I could not surf the net!! I had the ip address 10.1.1.2 netmask 255.0.0.0

/etc/resolve.conf is as suggested already

I will try changing the netmask in the morning to 255.255.0.0 ......... 2am my time and the coffee just ain't kicking in

Thankyou for your replies.
 
Old 07-19-2005, 10:52 AM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,815

Rep: Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958Reputation: 958
Changing the netmask won't fix your problem

You said "Yes I could ping google" ...
You mean that ping google.com is replying ?
(with the name "google.com", not the IP)
 
Old 07-19-2005, 10:54 AM   #13
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
edit your /etc/resolv.conf file and whatever is in there (if anything) see if it shows something like:

"nameserver 10.1.1.1"


If it doesn't look like this then change it to it. See what that does.


If that doesn't work then also see what route says. Just type 'route'. It should show the default gw(gateway) as 10.1.1.1

Last edited by Namaseit; 07-19-2005 at 10:55 AM.
 
Old 07-19-2005, 05:05 PM   #14
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Original Poster
Rep: Reputation: 30
Righto

I will reset my modem again now. To answer your questions I am following what is written specifically, so the ping was to googles ip address above. The nameserver is 10.1.1.1 and I will try the route command this time.

I would have concluded that if I could ping an ip address, I should be able to open a browser to view the web. I understand that pinging is a type of protocol as is ftp, http, https etc. Would this mean I have to allow further permissions within my router to access these services? I am unsure if this would be the case because with dhcp settings, I don't need to change anything, I have disabled guarddog whilst doing this so a firewall shouldn't be an issue.

cheers
 
Old 07-19-2005, 05:54 PM   #15
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Original Poster
Rep: Reputation: 30
I have 3 settings to choose from in the dhcp router section.


Code:
  No DHCP
   Choose this option. The IP address must be manually assigned at each device connected to DSL-G604T.
   
  DHCP Server
   Choose this option to setup as a DHCP server to distribute IP addresses to the LAN network.
   
  DHCP Relay
   Choose this option to setup as a DHCP Relay to relay DHCP request to the target DHCP server.

I have chosen No DHCP but am unsure if this is right.

The router command gives this output
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.0.0.0       U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         10.1.1.1        0.0.0.0         UG    1      0        0 eth0
all settings as previously described.

Last edited by aikidoist72; 07-19-2005 at 05:57 PM.
 
  


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
Slack 9.1 Networking issue Diminished7th Linux - Networking 2 07-06-2004 12:56 AM
Networking Slack for N00BS? SaintBucky Slackware 1 03-05-2004 03:13 PM
Networking on Slack Linux_Inside Slackware 4 10-29-2003 10:15 AM
Slack 9.1 Networking donnyp02 Slackware 5 10-20-2003 12:30 AM
Slack specific need! taz.devil Linux - General 5 01-09-2002 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:12 PM.

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
Open Source Consulting | Domain Registration