Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-26-2009, 10:31 PM
|
#1
|
Member
Registered: Oct 2009
Posts: 117
Rep:
|
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
|
|
|
10-26-2009, 10:35 PM
|
#2
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
Hi Dan,
Need more info please ... are you using a modem or a router ? are the switches managed/unmanaged ?
thanks
|
|
|
10-27-2009, 12:04 AM
|
#3
|
Member
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364
Rep:
|
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?

|
|
|
10-27-2009, 10:20 AM
|
#4
|
Member
Registered: Oct 2009
Posts: 117
Original Poster
Rep:
|
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.
|
|
|
10-27-2009, 12:28 PM
|
#5
|
Member
Registered: Oct 2009
Posts: 117
Original Poster
Rep:
|
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.
|
|
|
10-27-2009, 07:06 PM
|
#6
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
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
|
|
|
All times are GMT -5. The time now is 06:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|