[opensuse] Really need help from networking guru
I really need some help on a networking problem that I have tried to solve for several months now. At least point me to where I can find the answer as I have searched the web and not found anything. (Could be I am not asking right question, but I am not a programmer) After booting up, I open a root console and execute the following commands. ifplugd -bfi eth1 route add default gw 192.168.11.1 route del default gw 10.18.32.1 This gets me internet access for linux on the wireless card. (eth0 is used by Windows under parallels, normal network card) I put these commands in /etc/init.d/boot.local. When I boot, It does not work. If I try to enter them again in a root console, the ifplugd -bfi eth1 seems to work, that is no error. The route add default gw 192.168.11.1 comes back network unreachable. So, I remove the commands from boot.local, reboot, then everything works again after entering all of the commands in a root console. What am I doing wrong? Art -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Art Fore wrote:
ifplugd -bfi eth1 route add default gw 192.168.11.1 route del default gw 10.18.32.1
What am I doing wrong?
I think you need to create a file like /etc/sysconfig/network/ifcfg-xxxxx with a configuration that suits your wireless NIC. That way it'll get configured automagically by the SUSE init-sequence (in /etc/init.d/network I think). Here's a sample of what I'm using: /etc/sysconfig/network/ifcfg-wlan-id-nn:nn:nn:nn:nn:nn BOOTPROTO='dhcp' BROADCAST='' ETHTOOL_OPTIONS='' IFPLUGD_PRIORITY='10' IPADDR='' MTU='' NAME='AMBIT Microsystem AR5212 802.11abg NIC' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='ifplugd' UNIQUE='Kbch.qwn4nf+VyB8' USERCONTROL='yes' WIRELESS_AP='' WIRELESS_AUTH_MODE='psk' WIRELESS_BITRATE='auto' [snip WIRELESS*] WIRELESS_WPA_PSK='passw' _nm_name='bus-pci-0000:04:02.0' /Per Jessen, Zürich -- http://www.spamchek.com/ - your spam is our business. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-08-31 at 12:26 +0200, Per Jessen wrote:
Art Fore wrote:
ifplugd -bfi eth1 route add default gw 192.168.11.1 route del default gw 10.18.32.1
What am I doing wrong?
I think you need to create a file like /etc/sysconfig/network/ifcfg-xxxxx with a configuration that suits your wireless NIC. That way it'll get configured automagically by the SUSE init-sequence (in /etc/init.d/network I think).
Here's a sample of what I'm using:
/etc/sysconfig/network/ifcfg-wlan-id-nn:nn:nn:nn:nn:nn
BOOTPROTO='dhcp' BROADCAST='' ETHTOOL_OPTIONS='' IFPLUGD_PRIORITY='10' IPADDR='' MTU='' NAME='AMBIT Microsystem AR5212 802.11abg NIC' NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='ifplugd' UNIQUE='Kbch.qwn4nf+VyB8' USERCONTROL='yes' WIRELESS_AP='' WIRELESS_AUTH_MODE='psk' WIRELESS_BITRATE='auto' [snip WIRELESS*] WIRELESS_WPA_PSK='passw' _nm_name='bus-pci-0000:04:02.0'
/Per Jessen, Zürich
-- http://www.spamchek.com/ - your spam is our business.
OK, then how do I get Linux to go to the 192 network as default and remove the 10. network ad default route? Art
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 8/31/07, Art Fore <art.fore@comcast.net> wrote:
OK, then how do I get Linux to go to the 192 network as default and remove the 10. network ad default route?
Art
you can add your own script to do this in /etc/sysconfig/network/if-up.d the scripts in this directory are executed whenever an interface is ifup -ed. These scripts receive the name of the interface and some other data, so you can determine which interface is up (in your case eth1), and perform specific actions. Take a look in /etc/sysconfig/network/scripts, there are plenty of examples of if-up.d scripts. Cheers -- Svetoslav Milenov (Sunny) Even the most advanced equipment in the hands of the ignorant is just a pile of scrap. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2007-08-31 at 06:14 -0500, Sunny wrote:
On 8/31/07, Art Fore <art.fore@comcast.net> wrote:
OK, then how do I get Linux to go to the 192 network as default and remove the 10. network ad default route?
Art
you can add your own script to do this in /etc/sysconfig/network/if-up.d
the scripts in this directory are executed whenever an interface is ifup -ed. These scripts receive the name of the interface and some other data, so you can determine which interface is up (in your case eth1), and perform specific actions.
Take a look in /etc/sysconfig/network/scripts, there are plenty of examples of if-up.d scripts.
Cheers
-- Svetoslav Milenov (Sunny)
Even the most advanced equipment in the hands of the ignorant is just a pile of scrap. Thanks for the info. Will try this Monday after the weekend. Will look into that also proposed by Sunny.
Art -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Art Fore wrote:
I really need some help on a networking problem that I have tried to solve for several months now. At least point me to where I can find the answer as I have searched the web and not found anything. (Could be I am not asking right question, but I am not a programmer)
After booting up, I open a root console and execute the following commands.
ifplugd -bfi eth1 route add default gw 192.168.11.1 route del default gw 10.18.32.1
This gets me internet access for linux on the wireless card. (eth0 is used by Windows under parallels, normal network card)
I put these commands in /etc/init.d/boot.local.
When I boot, It does not work. If I try to enter them again in a root console, the ifplugd -bfi eth1 seems to work, that is no error. The route add default gw 192.168.11.1 comes back network unreachable.
So, I remove the commands from boot.local, reboot, then everything works again after entering all of the commands in a root console.
What am I doing wrong?
Art
I suspect this may be because you are not explicitly associating the default gw with the appropriate devices.... otherwise it tries to work this out on its own which may in some circumstances give unpredictable results... try ... route add default gw 192.168.11.1 eth1 route del default gw 10.18.32.1 eth1 which might be more appropriate see man route and have a look at the LNAG book (it is available online)... - -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG1/voasN0sSnLmgIRAnccAJ4p70qcXHJnVgBUXVEKwUEuqk2uBQCfRDt2 0hpdcq2QBV4ZVUjD+QCSPpg= =2jdq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 31 August 2007 06:30, G T Smith wrote:
Art Fore wrote:
ifplugd -bfi eth1 route add default gw 192.168.11.1 route del default gw 10.18.32.1
I missed the beginning of this thread, so please excuse if this isn't applicable. It looks like you are trying to change from one set of network settings to another...? Have you looked into SCPM? YaST -> System -> Profile Manager You can set up various network (and other) profiles and they will appear on your GRUB boot menu selectable by F2. No need to mess about with changing the init scripts. -- "After the vintage season came the aftermath - and Cenbe." Glenn Holmer (Q-Link: ShadowM) http://www.lyonlabs.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2007-09-01 at 07:29 -0500, Glenn Holmer wrote:
On Friday 31 August 2007 06:30, G T Smith wrote:
Art Fore wrote:
ifplugd -bfi eth1 route add default gw 192.168.11.1 route del default gw 10.18.32.1
I missed the beginning of this thread, so please excuse if this isn't applicable.
It looks like you are trying to change from one set of network settings to another...? Have you looked into SCPM?
YaST -> System -> Profile Manager
You can set up various network (and other) profiles and they will appear on your GRUB boot menu selectable by F2. No need to mess about with changing the init scripts.
-- "After the vintage season came the aftermath - and Cenbe." Glenn Holmer (Q-Link: ShadowM) http://www.lyonlabs.org
Not exactly. I want to run both networks in parallel, one for Linux and one for Windows. Art -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-08-31 at 17:45 +0800, Art Fore wrote:
I really need some help on a networking problem that I have tried to solve for several months now. At least point me to where I can find the
...
I put these commands in /etc/init.d/boot.local.
which will not work, as this script runs before network is up. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFG21y8tTMYHG2NR9URAv/LAJ4tEhOySxS6cwb48adCNx69cYp66gCgmKvY Hv5+bXfCvYEZ+qpV73oHNpY= =3e+N -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Art Fore
-
Carlos E. R.
-
G T Smith
-
Glenn Holmer
-
Per Jessen
-
Sunny