Ok I have been having some network troubles after a kernel compile.
I decided to recompile so that I could install the new nvidia drivers without downloading the kernel headers. Also it gives me practice for when kernel 2.6.0 arrives.
Could any Linux gurus help me re-establish proper networking? (The actual questions are right at the bottom.)
My relevant machine details:
Code:
Debian 3 stable (woody)
New kernel : 2.4.20
Old kernel : 2.4.18-bf (installed by typing bf24 at Debian first install prompt)
Intel celeron 1300 cpu
Asus motherboard
RTL8139 (realtek) 10/100 network card on PCI slot
Some relevant lines from my kernel configuration, edited for brevity (followed by comments):
Code:
CONFIG_NET=y //network support
CONFIG_PNP=y //plug and play support
# Networking options
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y //enables auto DHCP support
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# Network device support
CONFIG_NETDEVICES=y
# Ethernet (10 or 100Mbit)
//stuff has been cut out here
CONFIG_NET_PCI=y
//stuff has been cut out here
CONFIG_8139TOO=y
# CONFIG_8139TOO_PIO is not set
# CONFIG_8139TOO_TUNE_TWISTER is not set
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set
Now initially I cannot get to the network at all as this shows:
Code:
PING 150.203.110.1 (150.203.110.1): 56 data bytes
ping: wrote 150.203.110.1 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote 150.203.110.1 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote 150.203.110.1 64 chars, ret=-1
ping: sendto: Network is unreachable
--- 150.203.110.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
(150.203.110.1 is my gateway by the way.)
Now this isn't a problem with the card as it runs fine under my old kernel and "other" Operating Systems.
(The card is fully Linux compatible by the way, I bought the only one in the store which had "Linux support" written on front of it - and it worked fine before the recompile.)
I check to see if maybe the kernel hasn't modprobed the card by doing "cat /proc/pci":
Code:
PCI devices found:
=========================>8============================================================
Bus 2, device 9, function 0:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 16).
IRQ 9.
Master Capable. Latency=32. Min Gnt=32.Max Lat=64.
I/O at 0xd800 [0xd8ff].
Non-prefetchable 32 bit memory at 0xed800000 [0xed8000ff].
=========================>8============================================================
I have also seen something like:
Code:
(funny letters):eth0 setting 100mbps based on auto negotiated partner ability
flash by in the boot process.
After a long time I worked out that I should do an "ifconfig eth0" which indicates that I have no IP address nor netmask.
I am on a DHCP dynamic IP so I figure I should try and find a way to reget my IP, but the best thing I can find is dhclient.
So I do "dhclient eth0" as root and get no output, but upon re-pinging 150.203.110.1 there is no change. I re-check my IP and find I still don't have one.
I then do:
Code:
#ifconfig eth0 150.203.110.1 netmask 255.255.255.0 up
#ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:05:1C:0D:82:C8
inet addr:150.203.110.255 Bcast:150.203.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1252 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:145692 (142.2 KiB) TX bytes:256 (256.0 b)
Interrupt:9
So now I at least have an IP and netmask even if my admin will be upset at me for not using DHCP.
I re-ping 150.203.110.1 and I get normal output. (As in the ping is succesful.)
But when I ping an actual domain name I get "unknown host":
Code:
ping: unknown host fennetic.anu.edu.au
ping: unknown host www.anu.edu.au
ping: unknown host debian.anu.edu.au
(these are all valid address.)
So I still have no DNS, even though I am on the network.
My questions:
1:What have I done wrong in the recompile process? (Do I need to recompile "# CONFIG_IP_PNP_BOOTP" in?)
2:How do I set up my computer for full DHCP assignment? (Preferably on boot instead of by hand.)
3:If I am stuck with manual IP assignment (which will mean having to boot into Windows to find an unused IP address - ie the one assigned to my Windows box) then can I just shove the dns' IP address into /etc/hosts.conf? What would the formatting of that be?