Can't change from dhcp to static ip address.
Dear Experts,
I've installed Oracle's version of Linux Redhat 5,
but I'm having no success changing from dhcp
to a static IP address.
My machine is plugged directly into a Belkin router
which has the IP address: 192.168.2.1
If I use the gui: /usr/bin/system-config-network
and set the network device to dhcp,
it works fine. But if I set the IP address
manually, I get no internet traffic, and
if I ping an internet website, "network unreachable".
The installation instructions for Oracle say
that they want a full domainname. I've tried
gateway.2wire.net. This worked in the last
place I did a successful installation. It
was the address of my ATT router. If I plunked
that into a browser, I got the router configuration.
Now, I'm on a different network, not ATT.
I changed the part of the Belkin router from:
LAN > LAN Settings
Local Domain Name (Optional) > Belkin
to:
LAN > LAN Settings
Local Domain Name (Optional) > gateway.2wire.net
The other really crazy thing is, I can't
even ping the name of my own machine!
ping blue
PING blue.gateway.2wire.net (192.168.1.200) 56(84) bytes of data.
From wnpgmb0273w-dr09-v958.mts.net (142.161.133.82) icmp_seq=24 Destination Host Unreachable
I'll leave the output from a number of files.
Can anyone tell me what the secret to making
a static IP work is? Or, what I'm doing wrong?
Sorry for the seemingly dumb questions. Networking
seems to be one of the gotchas that gets me every time.
Thanks a lot!
-------
When I go into the configuration of the Belkin router
under DHCP, some of the settings are:
WAN IP 142.161.175.87
Default Gateway 142.161.133.201
DNS Address 142.161.130.154
Another time it was:
WAN IP 142.161.175.87
Default Gateway 142.161.133.200
DNS Address 142.161.130.154
--------------------------------------------------
Files under DHCP:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:13:20:19:F4:25
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search gateway.2wire.net
nameserver 192.168.2.1
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#::1 localhost6.localdomain6 localhost6
192.168.1.200 blue.gateway.2wire.net blue
ping yahoo.com
PING yahoo.com (69.147.114.224) 56(84) bytes of data.
64 bytes from b1.
www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=1 ttl=56 time=79.0 ms
64 bytes from b1.
www.vip.re3.yahoo.com (69.147.114.224): icmp_seq=2 ttl=56 time=73.2 ms
ping blue
PING blue.gateway.2wire.net (192.168.1.200) 56(84) bytes of data.
From wnpgmb0273w-dr09-v958.mts.net (142.161.133.82) icmp_seq=24 Destination Host Unreachable
--------------------------------------------------
Files under static IP:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:13:20:19:F4:25
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.200
GATEWAY=192.168.2.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search gateway.2wire.net
nameserver 192.168.2.1
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#::1 localhost6.localdomain6 localhost6
192.168.1.200 blue.gateway.2wire.net blue
-----------