LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP conflicts? (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-conflicts-437147/)

kzyhorse 04-20-2006 11:38 AM

DHCP conflicts?
 
Greetings
Running a DSL internet connection to a Actiontec modem.
The windows machine is connected via wireless and works fine except for the daily 'blue screen of death'

Hence the attempted migration to linux...
be advised: linux newbie!

Running Fedora 4 on a amd 900mhz, connected to Actiontec dsl modem via hardwire and network card.
Card is functional

Internet access was intermittent (some pages loaded, most did not) until running across dhcp mini how to.
Unfortunately, can't post the url until I've made three posts to the forum.

As root, added
"route add -host 255.255.255.255 dev eth0"

Internet access improved significantly under root expect "ping" which produced 100% packet loss.
Also, after logging in as "any user" internet access returns to intermittent (some pages load, most do not)

What more do I need to do?
Thanks in advance

fr_laz 04-20-2006 01:34 PM

Hi,
DHCP should give you an IP address, a netmask, a gateway and at least one nameserver.

the IP address is your address, the mask gives you the information of who's on the same network as you are.
The gateway is the IP that is the gate to the other networks (internet) and the nameserver is the IP of a machine translating IP addresses to names (and the other way round) so that you can ping www.google.com instead of 66.102.9.104

Since DHCP gives you a gateway, you shouldn't have to use the route command (which is use to manually add routes, ie gateways to other networks).

Could you please post the output of the following commands, as root:
ifconfig -a
route -n
cat /etc/resolv.conf
iptables -L

Also, if you know it, give us the IP address of your dsl modem.

kzyhorse 04-20-2006 03:49 PM

thanks for the info
here is the requested output:

[root@localhost ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:DA:66:BB:EF
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:daff:fe66:bbef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:127905 errors:0 dropped:0 overruns:1 frame:0
TX packets:117664 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:97037861 (92.5 MiB) TX bytes:15415069 (14.7 MiB)
Interrupt:11 Base address:0xfc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2522 errors:0 dropped:0 overruns:0 frame:0
TX packets:2522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2765874 (2.6 MiB) TX bytes:2765874 (2.6 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.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
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


[root@localhost ~]# iptables -L
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
[root@localhost ~]#

File Contents of the etc/resolv.conf

search localdomain
nameserver 192.168.0.1
nameserver 192.168.0.5


LAN IP address 192.168.0.1


All times are GMT -5. The time now is 10:11 PM.