![]() |
LAN and static IPs again.
Hi: My ISP gives me DHCP. I have two computers connected in LAN. The cable modem is connected to the coaxial cable provided by the ISP and to a router. From this, one cable goes to one computer and another to the other computer. Until today I had internet in both computers and each computer talked to the other one. The relevant files contents were (one computer shown):
/etc/rc.d/rc.inet1.conf: Code:
# Config information for eth0:/etc/hosts: Code:
127.0.0.1 localhostCode:
The (static) IPs, 192.168.0.2 and 192.168.0.3 for the machines were arbitrarily chosen by me, within the allowed range. And the gateway has still to be 192.168.0.1. No need to change these. The file /etc/hosts only assigns names to IPs. Perhaps running netconfig again? What does netconfig do, apart from writing a new /etc/hosts and running ifconfig. By the way, at present ifconfig gives: Code:
root@server:/etc/rc.d# ifconfig |
Apparently your old router had a network IP range or 192.168.0.0/255.255.255.0 while the new router has 192.168.1.0/255.255.255.0.
Therefore your old configuration with static IP addresses and a gateway address of 192.168.0.1 would not get your traffic across the router. That new router obviously is running a DHCP server and you should learn how to configure it so that it will give each computer its own permanent IP address (based on MAC address). Really, using DHCP is the safest and easiest way to provide network connectivity out of the box. If you want to stick to static IP's, just change the third tuple from "0" to "1". I am assuming that the new default gateway is "192.168.1.1" but that does not show from your post. Try running "route -n" to find out what the router's default gateway address is and add that to your computers' rc.inet1.conf files. And finally, start reading the fine manuals please. You will certainly profit from a reading bit of network basics. Eric |
Did you login to your new router and assign the static IP reservations? thats your problem, the router wants to use DHCP to assign a random IP and the system wants to use a specific one. The router won't let it use a specific one unless it has a reservation for that MAC address.
Just do a quick google on your router model number and static IP reservations. It took me about 20 seconds to set up on my Cisco router at home. |
| All times are GMT -5. The time now is 01:04 AM. |