LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-12-2013, 10:10 PM   #1
rjdbarsal
LQ Newbie
 
Registered: Jun 2013
Posts: 23

Rep: Reputation: Disabled
how we can fix this isc-dhcp-server failed ?


Scenario:
I set up my ubuntu server as a router.
see diagram > https://fbcdn-sphotos-g-a.akamaihd.n...85323098_n.jpg

eth 0 - is connected from the internet and other network.
eth 1 - is an internal network that connect to my laboratory network

Manually configure ip address from the other unit (in the laboratory network e.g. PC1) same with the gateway of the server router (eth 1).

PC1 with:
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.2

server eth1 (internal network) in static with:
address 192.168.1.2
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255

The problem we encounter is that the other unit in the laboratory (PC2 , PC3) can't connect to internet but can access to other network.

How can we fix this?
 
Old 07-12-2013, 10:29 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
Quote:
Originally Posted by rjdbarsal View Post
PC1 with:
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.2
The PC is using itself as a gateway. That cannot possibly work.

Quote:
Originally Posted by rjdbarsal View Post
server eth1 (internal network) in static with:
address 192.168.1.2
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
The server is configured with the same IP address as the PC. Every host in a network must have a unique IP address.
 
Old 07-12-2013, 11:31 PM   #3
rjdbarsal
LQ Newbie
 
Registered: Jun 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks for quick response.

I add a PC4 to the switch with window OS but it can connect to the Internet.
Theres is a problem here in Ubuntu OS.

note: PC2&PC3(ubuntu OS) and PC4(Windows) are all set to auto dhcp.
PC1 is manually configured. This is a security case also.

Last edited by rjdbarsal; 07-12-2013 at 11:34 PM.
 
Old 07-12-2013, 11:51 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
Assuming that the Ubuntu server has Internet access and is able to reach any other resources without issues, you will need to do the following to get your lab network online:
  1. configure eth1 on the Ubuntu server with an IP address in a different subnet than the one eth0 is connected to
  2. configure iptables on the Ubuntu server to perform NAT on outgoing traffic from the lab network
  3. configure all lab PCs with static IP addresses, or (preferably) install and configure a DHCP service on the Ubuntu server
The lab PCs will be using the Ubuntu server as a gateway. They will need to use whatever DNS server the Ubuntu server is using (look in /etc/resolv.conf on the server for clues).

If you don't really know how IP routing works, you will need to look up some tutorials or HowTos, or get some assistance.
 
1 members found this post helpful.
  


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
[SOLVED] isc-dhcp-server on Ubuntu 11.04 r_jr Linux - Networking 2 09-09-2011 06:58 PM
ISC DHCP server in LOTS of VLANs jumi99 Linux - Networking 5 03-18-2010 03:14 AM
ISC DHCP Server gsuresh_01 Linux - Server 0 01-02-2008 02:09 PM
Isc Dhcp Server On Aix 5.2 rylaix AIX 0 09-08-2005 12:42 PM
ISC DHCP Server MAC Address dlucas10 Linux - Networking 1 05-25-2004 06:49 PM

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

All times are GMT -5. The time now is 04:16 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