LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2007, 03:55 PM   #1
Chris594
Member
 
Registered: Oct 2005
Posts: 51

Rep: Reputation: 15
Network/dhcp issue


Hello everyone,
I need some network clarifications about dhcp.
Setup: internet -> firewall -> switch -> PCs
After a bit of research as I understand it dhcp provides/configures IP adresses for you networks' computers.
For instance you'll have PC1=192.168.1.2, PC2=192.168.1.3 ... and so on. Now I want to access my switch which is set on 192.168.2.1 but it refuses to connect. If the switch would be in the dhcp range (192.168.1.1-192.168.1.254) then I could establish a connection.
Why is that? How can I connect to 192.168.2.1? I thought that machines whith static IPs don't need to be in the dhcp range as they have static IPs

Thanks in advance for your help

Regards,

Chris
 
Old 06-22-2007, 04:21 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, is that switch a managed device?

To answer your question: the netmask is most likely
set to 255.255.255.0, which means that the devices
on 192.168.1 have no idea how to reach the switch.




Cheers,
Tink
 
Old 06-22-2007, 04:33 PM   #3
Chris594
Member
 
Registered: Oct 2005
Posts: 51

Original Poster
Rep: Reputation: 15
hi,
Thank you for your answer Tinkster.
Yes it is a managed switch and netmask is indeed 255.255.255.0.
Quote:
which means that the devices
on 192.168.1 have no idea how to reach the switch.
is there a work around?

thanks again
 
Old 06-22-2007, 04:43 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Extend the set-up of the firewall ( I assume it's the firewall
handing out the dhcp leases? ) to a netmask of 255.255.254.0 ...
That should put the switch in the same range.


Cheers,
Tink
 
Old 06-22-2007, 05:08 PM   #5
Chris594
Member
 
Registered: Oct 2005
Posts: 51

Original Poster
Rep: Reputation: 15
hum, doesn't seem to work
just to make sure I'm doing the right thing here , in my firewall (in my case pfSense) under Interfaces: LAN I can type in my IP: 192.168.1.1, default is 192.168.1.1/24 so I tried /30 and /22 but I still can't connect. Is this what you had in mind when you asked me to end the netmask?

Regards,


edit:forgot to mention now 192.168.1.1/17, range is 192.168.0.0 - 192.168.127.255

Last edited by Chris594; 06-22-2007 at 05:39 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
Wireless DHCP Issue pxumsgdxpcvjm Slackware 4 01-17-2007 02:40 AM
Backtrack / DHCP Issue bigdogg Slackware 7 03-30-2006 10:48 AM
dhcp server issue ruddernz Linux - Networking 2 01-27-2006 09:21 PM
Dhcp Issue real_shock Linux - Networking 3 07-16-2004 11:59 PM
DHCP Network issue. Weird.... DrGannon Linux - Networking 3 06-16-2003 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration