[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: 2 IP addresses in RH9



Shawn McPike wrote:
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??

"cd" to /etc/sysconfig/network-scripts and copy the file "ifcfg-eth0" to "ifcfg-eth0:1". Edit the second file and change the "DEVICE=" bit to read "eth0:1" and the "IPADDR=" to match your second IP address. An "/etc/rc.d/init.d/network restart" should get it all going.

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

Make sure the IP address and FQDN for the machine are in your /etc/hosts file since you won't be able to reverse DNS the 192.168.x.y addresses. ---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens vitalstream com - - VitalStream, Inc. http://www.vitalstream.com - - - - Change is inevitable, except from a vending machine. - ----------------------------------------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]