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:
IPADDR[0]="192.168.0.2"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Default gateway IP address:
GATEWAY="192.168.0.1"
This one maybe is not relevant but I list it anyways:
/etc/hosts:
Code:
127.0.0.1 localhost
192.168.0.2 server.DN1 server
192.168.0.3 local.DN2 local
OK. As I have determined to switch to another company, today the technician from the new ISP came and made the new installation. So the cable modem is a new one. When the serviceman left, I had windows with internet in both machines. As to Linux, I thought I had not anything to touch. But I could not connetct to the internet. Notice how, in the setup, I had chosen static IPs for the two machines. In this new scenario, what I did was to write a new /etc/rc.d/rc.inet1.conf:
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
# Default gateway IP address:
GATEWAY="192.168.0.1"
And now I have internet. But this is only a provisional rc.inet1.conf, so that I can post the present post. I arrived at the old software setup after many days of reading information sources, and trial and error. Furthermore, that setup was working. So, I do not want to change it.
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
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::922b:34ff:feb8:78cf prefixlen 64 scopeid 0x20<link>
ether 90:2b:34:b8:78:cf txqueuelen 1000 (Ethernet)
RX packets 664 bytes 325273 (317.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 762 bytes 122005 (119.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 42 base 0x2000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 8 bytes 480 (480.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 480 (480.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@server:/etc/rc.d#
This is the state as of this writing, i.e., with internet connectivity. Could you tell me what is the thing I am omitting?