LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-31-2003, 10:39 AM   #1
sm11773
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
2 IPs and domains


Stupid newbie question here

1) I just recently set up RH9.
2) I have an external router/firewall that handles one-to-one NAT on my external IP addresses (i.e. EXTERNALIP1 --> 192.168.254.10 and EXTERNALIP2 --> 192.168.254.11).
3) Both external IPs are registered domain names that I own (domainname.com)
4) OK - here's the question... both of the mentioned internal IPs need to point to my linux machine. I have 1 configured so far and here is the ifconfig for my single NIC:

eth0 Link encap:Ethernet HWaddr 00:04:5A:64:62:51
inet addr:192.168.254.10 Bcast:192.168.254.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13212 errors:0 dropped:0 overruns:0 frame:0
TX packets:10375 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:12378958 (11.8 Mb) TX bytes:2735929 (2.6 Mb)
Interrupt:11 Base address:0x4000

5) not sure if this helps, but here is my IP routing table.

Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.254.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.254.254 0.0.0.0 UG 0 0 0 eth0

6) So (A) how do I set up 192.168.254.11 on the same NIC??
7) And (B) I get messages on FQDN's not being configured: i.e when I start Apache:

Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Thanks in advance!
Shawn McPike
 
Old 10-31-2003, 11:15 AM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Mapping the domain names to ip addresses in /etc/host might solve the fqdn problem
 
Old 10-31-2003, 11:17 AM   #3
tgflynn
Member
 
Registered: Oct 2003
Location: Rochester, New York (USA)
Distribution: Debian
Posts: 119

Rep: Reputation: 15
You'll need to configure an ethernet device alias. Here's a link to the RH9 manual page that describes how to do that :

http://www.redhat.com/docs/manuals/l...k-aliases.html

For the Apache problem you might need to set up the ServerName directive in your httpd.conf file. If you plan to host 2 web sites from the same machine you'll need to be using VirtualHost directives.

Tim
 
  


Reply



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
Apache 2.0 - Some domains on SSL, some not - how many real IPs needed? tisource Linux - Networking 1 07-02-2005 09:07 AM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
eth0:9 incorrect IPs ,and eth0 not IPs WannaLearnLinux Linux - Networking 10 10-26-2003 08:50 PM
Networking questions : Setting up domains/vhosts/subdomains/IPs etc. Belize Linux - Networking 1 09-16-2003 03:39 AM
Hosts / domains / IPs / Vhosts Belize Linux - Networking 1 08-22-2003 01:20 AM

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

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