[opensuse] confused by network setup
Hello: Sorry, but this is going to be a little bit long. I have the following problem in my openSUSE 11.2 system: I have an ADSL internet connection where I have login name and password for authentication. For the connection I created a DSL device and a provider in yast. The DSL device is configured as: PPP Mode: PPP over Ethernet, Activate device: On hotplug, and Enable device control for non-root users via kineternet option is enabled. The network card is configured in yast as follows: Network Settings/Overview window: name: xxx ethernet controller, IP Address: none device name: eth0 started automatically at boot Network Settings/Global options window: Traditional method with ifup enable IPv6 DHCP Client Identifier: left empty Hostname to send: AUTO Change default route via DHCP: not checked Network Settings/Hostname-DNS and Routing windows: default values Network Card Setup/Address window: No IP Address is (for Bonding Devices) is selected everything else is off/blank Network Card Setup/General window: Activate device: on hotplug Assign interface to firewall zone: External zone Network Card Setup/Hardware window: device name: eth0 After setting everything as above and clicking OK the network is set up, and the ADSL connection is made automatically. Network works well. I can hang up connection and can reconnect using kinternet. In kinternet/check connection everything seems to be OK, own address, name server address etc. But the problem is: When I turn the computer off and boot it again, the network is not getting configured, and I can not make the ADSL connection to the network. If I dial with kinternet its log says: pppd[0]: error sending pppoe packet: Network is down /var/log/messages has these lines: Oct 4 21:19:29 pc ifup: dsl0 name: DSL Connection Oct 4 21:19:29 pc pppd[3287]: Plugin rp-pppoe.so loaded. Oct 4 21:19:29 pc kernel: [ 71.422239] PPP generic driver version 2.4.2 Oct 4 21:19:29 pc pppd[3287]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5 Oct 4 21:19:29 pc pppd[3287]: Plugin passwordfd.so loaded. Oct 4 21:19:29 pc kernel: [ 71.449577] NET: Registered protocol family 17 Oct 4 21:19:29 pc pppd[3287]: pppd 2.4.5 started by root, uid 0 Oct 4 21:19:29 pc pppd[3287]: error sending pppoe packet: Network is down Oct 4 21:19:29 pc pppd[3287]: error receiving pppoe packet: Network is down ifconfig shows this: # ifconfig 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:106 errors:0 dropped:0 overruns:0 frame:0 TX packets:106 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:16031 (15.6 Kb) TX bytes:16031 (15.6 Kb) Even the commands # rcnetwork restart, or # rcnetwork start does not make any change. But if I go to yast network settings and leave everything as is and click OK the network is restarted and works again. What can be the problem, and how could I fix it? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote: [snip]> But the problem is:
When I turn the computer off and boot it again, the network is not getting configured, and I can not make the ADSL connection to the network.
So the network devices are not getting started automatically. What do you have in /etc/sysconfig/network ?
ifconfig shows this:
# ifconfig 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:106 errors:0 dropped:0 overruns:0 frame:0 TX packets:106 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:16031 (15.6 Kb) TX bytes:16031 (15.6 Kb)
Try activating your network devices with "ifup": ifup eth0 ifup dsl0 And let us know how it goes. -- Per Jessen, Zürich (11.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2012. október 5. 7:42 napon Per Jessen <per@computer.org> írta:
Istvan Gabor wrote:
[snip]> But the problem is:
When I turn the computer off and boot it again, the network is not getting configured, and I can not make the ADSL connection to the network.
So the network devices are not getting started automatically.
What do you have in /etc/sysconfig/network ?
ifconfig shows this:
# ifconfig 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:106 errors:0 dropped:0 overruns:0 frame:0 TX packets:106 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:16031 (15.6 Kb) TX bytes:16031 (15.6 Kb)
Try activating your network devices with "ifup":
ifup eth0 ifup dsl0
And let us know how it goes.
Thank you Per. I have this in /etc/sysconfig/network: # ls -l /etc/sysconfig/network total 80 -rw-r--r-- 1 root root 10797 2012-10-04 20:31 config -rw-r--r-- 1 root root 6273 2012-10-03 19:21 dhcp -rw-r--r-- 1 root root 183 2010-10-25 18:39 ifcfg-dsl0 -rw-r--r-- 1 root root 184 2012-10-05 14:18 ifcfg-eth0 -rw-r--r-- 1 root root 174 2010-03-18 19:42 ifcfg-lo -rw-r--r-- 1 root root 27402 2010-03-18 19:42 ifcfg.template drwxr-xr-x 2 root root 4096 2010-03-05 23:04 if-down.d -rw-r--r-- 1 root root 239 2010-03-18 19:42 ifroute-lo drwxr-xr-x 2 root root 4096 2010-03-06 17:53 if-up.d drwx------ 2 root root 4096 2010-07-11 22:26 providers -rw-r--r-- 1 root root 0 2010-10-25 18:39 routes drwxr-xr-x 2 root root 4096 2010-12-10 00:13 scripts # ifup eth0 eth0 device: nVidia Corporation CK8S Ethernet Controller (rev a2) eth0 Startmode is 'off' # ifup dsl0 dsl0 name: DSL Connection interface dsl0 is up kinternet tries to connect but can't. ifconfig still gives: # ifconfig 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:362 errors:0 dropped:0 overruns:0 frame:0 TX packets:362 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:35975 (35.1 Kb) TX bytes:35975 (35.1 Kb) A googled in the meantime and found this: http://ca.huji.ac.il/services/internet/connect/adsl/pppoe_linux.shtml This says: "Although PPPoE does not require an IP address to be set for your Ethernet adapter some distributions may not initialize the adapter without it." I guess this applies to openSUSE as well. I assigned a statical IP address/subnet mask (10.200.1.1 /255.0.0.0) to the network card in yast and after rebooting the card was configured and network connection worked. Is there a drawback of assigning a static IP address? Might it be a bug that prevents network setup when no IP address is set for the card? Thanks, -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote:
Thank you Per.
I have this in /etc/sysconfig/network:
# ls -l /etc/sysconfig/network total 80 -rw-r--r-- 1 root root 10797 2012-10-04 20:31 config -rw-r--r-- 1 root root 6273 2012-10-03 19:21 dhcp -rw-r--r-- 1 root root 183 2010-10-25 18:39 ifcfg-dsl0 -rw-r--r-- 1 root root 184 2012-10-05 14:18 ifcfg-eth0
Ok, those were the two interesting ones.
# ifup eth0 eth0 device: nVidia Corporation CK8S Ethernet Controller (rev a2) eth0 Startmode is 'off' ^^^^^^^^^^^^^^^^^^^ That seems weird, isn't this your normal ethernet interface? I would expect it to have Startmode="auto" ?
# ifup dsl0 dsl0 name: DSL Connection interface dsl0 is up
kinternet tries to connect but can't. ifconfig still gives:
# ifconfig 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:362 errors:0 dropped:0 overruns:0 frame:0 TX packets:362 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:35975 (35.1 Kb) TX bytes:35975 (35.1 Kb)
I'm not very familiar with running DSL on a local device (I've only ever used a separate DSL router/modem), but I would expect some kind of point-to-point interface, probably pppoe0 - maybe a dsl0 interface too.
A googled in the meantime and found this:
http://ca.huji.ac.il/services/internet/connect/adsl/pppoe_linux.shtml
This says:
"Although PPPoE does not require an IP address to be set for your Ethernet adapter some distributions may not initialize the adapter without it." I guess this applies to openSUSE as well. I assigned a statical IP address/subnet mask (10.200.1.1 /255.0.0.0) to the network card in yast and after rebooting the card was configured and network connection worked. Is there a drawback of assigning a static IP address? Might it be a bug that prevents network setup when no IP address is set for the card?
I think you have quite likely hit a bug, I don't think this part of YaST has been tested much. I remember trying to get a pppoe setup to work with IPv6 maybe two years ago, the whole thing seemed a little flaky to me. -- Per Jessen, Zürich (18.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Istvan Gabor
-
Per Jessen