LinuxQuestions.org
Review your favorite Linux distribution.
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 10-26-2009, 11:31 PM   #1
danmartinj
Member
 
Registered: Oct 2009
Posts: 117

Rep: Reputation: 1
How to Setup Static IP Address on Debian Linux Boxes through 2 Switches


First Thanks for viewing my Thread,

I cannot believe I am still stuck on this problem. I have broad band coming into to a switch. Then there is a cable going to another switch where my 4 boxes are. Now, if I skip that second switch and go to my debian linux box the thing works and I connect to the internet. But when I connect my linux boxes to that second switch I get nothing. I can ping though I just cant get to the internet. I have tried several things and I am really getting frustrated. I would appreciate any help.


By the way, my 4 linux boxes all have static IP's assigned as well. I also have configured my resolv.conf file. Also I have included the correct IP address but do I leave the nameserver nameserver or do I put a different name in for that line?


ex. nameserver 191.72.3.1

Thanks Again!

Dan
 
Old 10-26-2009, 11:35 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi Dan,

Need more info please ... are you using a modem or a router ? are the switches managed/unmanaged ?

thanks
 
Old 10-27-2009, 01:04 AM   #3
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
You mention that you have set static IPs and set resolv.conf, but what about setting the default gateway?

How does your Debian machine gets its IP. static or dynamic?

 
Old 10-27-2009, 11:20 AM   #4
danmartinj
Member
 
Registered: Oct 2009
Posts: 117

Original Poster
Rep: Reputation: 1
Reply on How to Setup Static IP Address

Hey there again,

Thanks for replying back so fast. The exact setup as I know it is the connection comes into a homemade router. Then it gets sent to a switch which feeds other computers with internet. Then I have a connection going to my switch which is an old Addtron ADS-1005, 5 port device. It looks older and Im pretty sure is unmanaged. Then I have cables going to my debian boxes. Yesterday I was able to ping my other debian boxes, the defualt gateway, and the dns server. Now I can ping everything but the dns server so I have done something to it since yesterday. Either way it does not work and I am confused. I will post the configuration of one my debian boxes. They are all identical except for the ip address. The ranges are 10.0.64.250 - 10.0.64.247


resolv.conf:

search Test
nameserver 24.92.226.11


interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 10.0.64.249
netmask 255.0.0.0
network 10.0.64.0
broadcast 10.0.64.255
gateway 10.0.64.1
# dbs-* options are implemented by the resolvconf package, if installed
dns -nameservers 24.92.226.11
dns-search Test



PS. I have read articles about this type of setup. I know the 2nd switch should be a router. However, I would still think this setup should still be able to work so these debian computers share an internet connection. Hopefully I can solve this problem soon. Thanks again for your helpful response.
 
Old 10-27-2009, 01:28 PM   #5
danmartinj
Member
 
Registered: Oct 2009
Posts: 117

Original Poster
Rep: Reputation: 1
Hey there friends,

I just wanted to let you that I was just able to get it up and running. I actually just built the debian boxes a couple of days ago and maybe there were some bugs in them still or this old switch but I just resarted everything a couple of times and now for some reason they all work. I did not mention either that the first switch I had up and was testing I had some severe packet loss but everything seems to work fine now. I am getting about 5Gbps download speed and 400Kbps upload speed after a basic test. I am satisfied.
 
Old 10-27-2009, 08:06 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Glad it's all working ... just as a side note, your subnet mask does not match the rest of your network settings

eg.
Code:
address 10.0.64.249
netmask 255.0.0.0
network 10.0.64.0
broadcast 10.0.64.255
gateway 10.0.64.1
should be:
Code:
address 10.0.64.249
netmask 255.255.255.0
network 10.0.64.0
broadcast 10.0.64.255
gateway 10.0.64.1
cheers,

kbp
 
  


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
setup Static IP address for centOS and access to ssh careykwong Linux - Networking 14 09-23-2009 11:02 PM
Setup static ip-address in kubuntu? Silver565 Linux - Newbie 4 08-16-2009 01:08 AM
setup the static ip address hansi umayangan SUSE / openSUSE 1 04-04-2005 03:54 AM
computer switches from static to dhcp address (automagically?) cyberpuerka Linux - Networking 1 09-03-2004 12:29 PM
Verizon aDSL setup with static IP address RH9 server costasm Linux - Networking 1 10-16-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:15 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
Open Source Consulting | Domain Registration