LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-16-2003, 09:20 AM   #1
RWild
Member
 
Registered: Nov 2002
Location: Cary, NC
Distribution: Red Hat
Posts: 76

Rep: Reputation: 15
DHCP, Manual IPs, NAT??


Mac OS 10.2.3 has a NIC configuration option called "Using DHCP with manual IP address."

What does this do? What are the implications for NAT? What would be the equivalent setup on Redhat 8?

RedHat's configuration tool offers only dynamic (dhcp, bootp, dailup) or static. With static, you also specify a gateway. For dhcp, the only way I can reach the Internet through the router is to let it assign the router as the primary DNS server although the LAN works. My recollection for earlier versions of RedHat is that you could choose DHCP and also specify the gateway.

I am one confused newbie.
 
Old 01-18-2003, 06:20 PM   #2
c4_4ya
Member
 
Registered: Jan 2003
Location: Asheville, NC
Distribution: Slackware, RedHat
Posts: 35

Rep: Reputation: 15
I know on RH 7.3, you can add this line:
GATEWAY=[gateway ip]
in your /etc/sysconfig/network file. Or you could just let DHCP do it for you. I would assume that RH 8 is the same... let me know things are NOT this way under RH8.
 
Old 01-19-2003, 11:17 AM   #3
RWild
Member
 
Registered: Nov 2002
Location: Cary, NC
Distribution: Red Hat
Posts: 76

Original Poster
Rep: Reputation: 15
Adding a GATEWAY= line did not help.

I still could not get to the Internet unless I allow RH to set my route as the primary DNS server. It's a long story, but I discovered on a fresh installation on another machine that this problem did not occur. It may be a DHCP option regarding hostnames that I selected during installation.
 
Old 01-19-2003, 02:48 PM   #4
c4_4ya
Member
 
Registered: Jan 2003
Location: Asheville, NC
Distribution: Slackware, RedHat
Posts: 35

Rep: Reputation: 15
I dont understand what you mean by 'allow RH to set my route as the primary DNS server'. IP routing, including the default gateway, never rely on name resolution unless you set something like this in /etc/sysconfig/network:
GATEWAY=gatewayip.somedomain.com
If your gateway is set in this fashion, (which is a bad idea, because your DNS server may be on a different subnet that your host cannot get to without a default gateway, which your host will not be able to resolve because it has no gateway,etc.). If you have your gateway set as a name, make sure you map the name to an IP in /etc/hosts. Hope this helps...
 
Old 01-19-2003, 04:17 PM   #5
RWild
Member
 
Registered: Nov 2002
Location: Cary, NC
Distribution: Red Hat
Posts: 76

Original Poster
Rep: Reputation: 15
That should have read "set my router as the primary DNS server."

The RedHat network device configuration tool has a panel for each NIC that allows you to choose DHCP with options to set a DHCP hostname and to "automatically obtain DNS information from provider." If I check the latter, the my router address appears on the DNS panel (separate panel) as the primary DNS server. If I recall, this also happens no matter what on the DHCP panel if I do not enter a hostname on the DNS panel.

There was no GATEWAY= line in /etc/sysconfig/network. I could not tell any difference when I entered the IP address of the router and rebooted. I have a simple LAN with everything on 192.168.1.x.

I am in the process of reinstalling RH, making sure to set the hostname during the installation.

Thanks for the input.
 
Old 01-19-2003, 05:17 PM   #6
c4_4ya
Member
 
Registered: Jan 2003
Location: Asheville, NC
Distribution: Slackware, RedHat
Posts: 35

Rep: Reputation: 15
Reinstalling will definitely help things out, but it would have been much faster and easier just to configure yourself a hostname by specifying it in /etc/sysconfig/network by adding the line:
HOSTNAME=computername or:
HOSTNAME=computername.domainname
Probably would have used the first entry, assuming DHCP is assigning a DNS suffix to your DHCP clients.
BTW, how are things in Cary? (my old stomping grounds ;-)
 
Old 01-19-2003, 08:55 PM   #7
RWild
Member
 
Registered: Nov 2002
Location: Cary, NC
Distribution: Red Hat
Posts: 76

Original Poster
Rep: Reputation: 15
I am giving up on Linux on this machine - a Dell Precision Workstation 530 with dual Xeons and a Quadro2 EX. It shipped with RH 7.3 pre-installed and that worked. I've had nothing but trouble since going to RH 8.0. Since those problems have little to do with this thread, I'll spare you the details but I am about to order Win2K Pro to put on the machine. No meanfull support from either Dell or RedHat. I have five Dells in the house and about seven retail RedHats. I'll be damned if I will have any more of either.

Why don't you send email if you want to talk about Cary?
 
  


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
2 DHCP IPs, one NIC? lil_drummaboy Linux - Networking 1 10-24-2005 03:36 PM
NAT + public IPS (+ firestarter) Stefan Pantiru Linux - Networking 2 05-17-2005 05:43 AM
DHCP with fixed IPs alithenake Slackware 4 03-18-2005 09:02 AM
DHCP and Multiple IPs Matir Linux - Networking 0 02-23-2005 02:28 PM
2 IPs -> NAT -> Webserver Kumado Linux - Networking 3 10-31-2003 09:32 PM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration