Re: [opensuse] Network setup problem
![](https://seccdn.libravatar.org/avatar/54df84b83dac3594fa721c3612615e40.jpg?s=120&d=mm&r=g)
On Wed, 2009-09-30 at 02:34 +0530, phanisvara das wrote:
On Wednesday 30 September 2009 02:09:29 am you wrote:
I tried to do it via terminal as you instructed, but it still doesn't work.
not good ... :(
Then I tried to do the same thing via yast, and it didn't work there either. There are two files now, /etc/sysconfig/network/routes and /etc/sysconfig/network/routes-yast2save. They both have the same default written in the file, but nothing else.
that's how it is supposed to be.
please post output of the following commands (root terminal), _before_ enabling your network with yast:
route -n arp -n cat /etc/resolv.conf
-- phani.
Here is before activating the card linux-cqtg:/home/lxmark # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo linux-cqtg:/home/lxmark # arp -n linux-cqtg:/home/lxmark # cat /etc/resolv.conf ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file! linux-cqtg:/home/lxmark # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:66 errors:0 dropped:0 overruns:0 frame:0 TX packets:66 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4620 (4.5 Kb) TX bytes:4620 (4.5 Kb) linux-cqtg:/home/lxmark # After linux-cqtg:/home/lxmark # arp -n Address HWtype HWaddress Flags Mask Iface 192.168.0.1 ether 00:13:46:f0:d5:74 C eth0 linux-cqtg:/home/lxmark # cat /etc/resolv.conf ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file! nameserver 192.168.0.1 linux-cqtg:/home/lxmark # 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 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 linux-cqtg:/home/lxmark # ifconfig eth0 Link encap:Ethernet HWaddr 00:24:21:A9:5B:1D inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:847 errors:0 dropped:0 overruns:0 frame:0 TX packets:701 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:902578 (881.4 Kb) TX bytes:106621 (104.1 Kb) Interrupt:252 Base address:0xa000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:98 errors:0 dropped:0 overruns:0 frame:0 TX packets:98 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7100 (6.9 Kb) TX bytes:7100 (6.9 Kb) linux-cqtg:/home/lxmark # -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/638ba51541857d5f78bb19dc4ea388f9.jpg?s=120&d=mm&r=g)
On Wednesday 30 September 2009 03:25:06 am you wrote:
Here is before activating the card
linux-cqtg:/home/lxmark # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
no gateway configured to access anything on the network.
linux-cqtg:/home/lxmark # arp -n
doesn't find your router, of course.
linux-cqtg:/home/lxmark # cat /etc/resolv.conf ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file!
no DNS resolution set up
linux-cqtg:/home/lxmark # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:66 errors:0 dropped:0 overruns:0 frame:0 TX packets:66 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4620 (4.5 Kb) TX bytes:4620 (4.5 Kb)
and the only interface enabled is the internal "loopback," means your network card hasn't been activated yet.
After
linux-cqtg:/home/lxmark # arp -n Address HWtype HWaddress Flags Mask Iface 192.168.0.1 ether 00:13:46:f0:d5:74 C eth0
now it finds the router...
linux-cqtg:/home/lxmark # cat /etc/resolv.conf ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file! nameserver 192.168.0.1
uses whatever nameserver your router supplies.
linux-cqtg:/home/lxmark # 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 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
routes are set up properly
linux-cqtg:/home/lxmark # ifconfig eth0 Link encap:Ethernet HWaddr 00:24:21:A9:5B:1D inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:847 errors:0 dropped:0 overruns:0 frame:0 TX packets:701 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:902578 (881.4 Kb) TX bytes:106621 (104.1 Kb) Interrupt:252 Base address:0xa000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:98 errors:0 dropped:0 overruns:0 frame:0 TX packets:98 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7100 (6.9 Kb) TX bytes:7100 (6.9 Kb)
and the network card (eth0) works david might be right saying that other module may need to be loaded for your card. i didn't think yast network configuration would do that, but i may be mistaken. one other thing you can try: type ifup eth0 on a root terminal before starting the yast configuration and see if your network starts working. (if not, please post the result of that command here.) if that still doesn't work, we'll have to do something about the kernel modules for your network card. the README file you posted earlier should help with that. i don't have much experience configuring kernel modules, simply because i've been lucky so far and the hardware i'm using was mostly supported by default. i would have to start guessing and trying out different things; it's better if somebody with better knowledge in these things helps you with that. but try once more, using "ifup eth0". it might just work... -- phani. PS: you sent this to my personal address again; i don't mind, but others on this list won't see it! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/54df84b83dac3594fa721c3612615e40.jpg?s=120&d=mm&r=g)
but try once more, using "ifup eth0". it might just work...
I tried it, but the response is: interface eth0 is not available
-- phani.
PS: you sent this to my personal address again; i don't mind, but others on this list won't see it!
When I send a reply to all, it sends a reply to the writer of the email (You), and to opensuse@opensuse.org Someone that posted earlier in the day told me that he has a realtek ethernet card on his board with a differant number, and he had to force the driver to load. his was an 8168 and mine is a 8101/8102. When I set up the configuration I followed 2b, but didn't force anything or modify the MAC address. Here are the sections of the readme file about forcing the driver. Maybe someone that knows about this can help me to figure out if it applies and if so what I will need to add. 2. Set by doing configurations in /etc/sysconfig/network-scripts /ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network /ifcfg-ethX for SuSE. There are two examples to set network configurations. b. DHCP: DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes <Modify the MAC address> There are two ways to modify the MAC address of the NIC. 1. Use ifconfig: # ifconfig ethX hw ether YY:YY:YY:YY:YY:YY ,where X is the device number assigned by Linux kernel, and YY:YY:YY:YY:YY:YY is the MAC address assigned by the user. 2. Use ip: # ip link set ethX address YY:YY:YY:YY:YY:YY ,where X is the device number assigned by Linux kernel, and YY:YY:YY:YY:YY:YY is the MAC address assigned by the user. <Force Link Status> 1. Force the link status when insert the driver. If the user is in the path ~/r8101, the link status can be forced to one of the 4 modes as following command. # insmod ./src/r8101.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION ,where SPEED_MODE = 100 for 100Mbps = 10 for 10Mbps DUPLEX_MODE = 0 for half-duplex = 1 for full-duplex NWAY_OPTION = 0 for auto-negotiation off (true force) = 1 for auto-negotiation on (nway force) For example: # insmod ./src/r8101.ko speed=100 duplex=0 autoneg=1 will force PHY to operate in 100Mpbs Half-duplex(nway force). 2. Force the link status by using ethtool. a. Insert the driver first. b. Make sure that ethtool exists in /sbin. c. Force the link status as the following command. # ethtool -s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION ,where SPEED_MODE = 100 for 100Mbps = 10 for 10Mbps DUPLEX_MODE = half for half-duplex = full for full-duplex NWAY_OPTION = off for auto-negotiation off (true force) = on for auto-negotiation on (nway force) For example: # ethtool -s eth0 speed 100 duplex full autoneg on will force PHY to operate in 100Mpbs Full-duplex(nway force). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/27aacf61a13c66fcc083fcf8a84823bc.jpg?s=120&d=mm&r=g)
On Tuesday 29 September 2009 06:22:03 pm Mark Misulich wrote:
but try once more, using "ifup eth0". it might just work...
I tried it, but the response is: interface eth0 is not available
Then it is a module issue. Your eth0 interface isn't created until you have the proper module loaded that allows your computer to talk to your network card. Before you load the module, your computer has no idea that you have an eth0. Just for grins, do as suggested. After a fresh boot, but before the network card is enabled: lsmod > net-before Then start your network with yast and get it running. After it is running, do lsmod > net-after then diff net-before net-after > filetopost Then post the result of the diff (the contents of "filetopost" if any). Once we can determine the module that is needed, as root, do a: modprobe -v modulename Then confirm that eth0 appeared with an ifconfig. Then with the module loaded, as root, do a: depmod -A To save the module dependencies in modules.dep and the module for your network card should then load on boot as long as it isn't blacklisted somehow in /etc/modprobe.d/blacklist. Let us know how it goes... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/eeaa070dd6317ec84ae2eb35d4eaf01f.jpg?s=120&d=mm&r=g)
Mark Misulich pecked at the keyboard and wrote:
On Wed, 2009-09-30 at 02:34 +0530, phanisvara das wrote: <snip>
Here is before activating the card
linux-cqtg:/home/lxmark # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
No default route assigned to the card since the card was not setup. Perhaps the module is not being loaded on startup.
linux-cqtg:/home/lxmark # arp -n linux-cqtg:/home/lxmark # cat /etc/resolv.conf ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file!
No nameserver defined hence no name resolution.
linux-cqtg:/home/lxmark # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:66 errors:0 dropped:0 overruns:0 frame:0 TX packets:66 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4620 (4.5 Kb) TX bytes:4620 (4.5 Kb)
linux-cqtg:/home/lxmark #
After
linux-cqtg:/home/lxmark # arp -n Address HWtype HWaddress Flags Mask Iface 192.168.0.1 ether 00:13:46:f0:d5:74 C eth0 linux-cqtg:/home/lxmark # cat /etc/resolv.conf ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file! nameserver 192.168.0.1
Here you have one nameserver defined it wouldn't hurt to add a couple more, probably defined in the router. If not add them using yast when you setup the network card.
linux-cqtg:/home/lxmark # 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 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Here your default route (0.0.0.0 192.168.0.1) is defined. Without this the machine doesn't know where to network requests.
linux-cqtg:/home/lxmark # ifconfig eth0 Link encap:Ethernet HWaddr 00:24:21:A9:5B:1D inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:847 errors:0 dropped:0 overruns:0 frame:0 TX packets:701 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:902578 (881.4 Kb) TX bytes:106621 (104.1 Kb) Interrupt:252 Base address:0xa000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:98 errors:0 dropped:0 overruns:0 frame:0 TX packets:98 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7100 (6.9 Kb) TX bytes:7100 (6.9 Kb)
linux-cqtg:/home/lxmark #
Try checking to see which module is loaded when the card is configured (lsmod) and add it the the line: MODULES_LOADED_ON_BOOT=" " in the file /etc/sysconfig/kernel If you need further help let us know, that's why we lurk on this list. :-) -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
David C. Rankin
-
Ken Schneider - openSUSE
-
Mark Misulich
-
phanisvara das