Re: FC2 Ethernet and Wireless settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2004-08-11 at 21:57, Scot L. Harris wrote:
> On Wed, 2004-08-11 at 00:18, Peter Smith wrote:
> I think there is way to configure different network profiles and then
> select which one you want to use.  Have not done this myself but I found
> this which may get you going the right direction.
> 
> http://www.linuxgazette.com/book/view/1754
(I'm replying this before I read the above link so, sorry if this is
duplicated)

This is how I do it when I switch from using a pcmcia network to a
pcmcia wireless. Since my dell has only 1 slot, I need to configure it
to various different settings. (since both wants to be called eth1)

user $ cat /etc/sysconfig/network-scripts/ifcfg-eth1 
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
DEVICE=eth1
case `ifconfig eth1 | sed -ne 's/.*HWaddr *\([^ ]*\) */\1/p'` in
00:60:08:B1:1C:03) 
                . eth-3com;;

00:09:5B:0E:0B:D1)
               . eth-netgear;;

*) echo "Unknown MAC address. Please update ifcfg-eth1"

esac

[ -n "$USERDEVICENAME" ] && echo $DEVICE > /tmp/$USERDEVICENAME

IPV6INIT=no
ONBOOT=no
USERCTL=yes
PEERDNS=yes
TYPE=Ethernet
DEVICE=eth1
BOOTPROTO=dhcp


user $ cat /etc/sysconfig/network-scripts/eth-3com 
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERDEVICENAME=eth-3com
USERCTL=yes
PEERDNS=yes
ONBOOT=no
#BOOTPROTO=none
BOOTPROTO=dhcp
TYPE=Ethernet
#IPADDR=10.0.0.1
DEVICE=eth1
HWADDR=00:60:08:b1:1c:03
BOOTPROTO=none
NETMASK=255.255.255


cat /etc/sysconfig/network-scripts/eth-netgear 
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERDEVICENAME=eth-netgear
USERCTL=yes
PEERDNS=yes
GATEWAY=
ONBOOT=no
TYPE=Wireless
DHCP_HOSTNAME=
IPADDR=
DEVICE=eth1
HWADDR=00:09:5b:0e:0b:d1
BOOTPROTO=dhcp
DOMAIN=
NETMASK=
ESSID=
CHANNEL=1
MODE=Managed
KEY=
RATE=2Mb/s




-- 
Ow Mun Heng
Fedora GNU/Linux Core 2 on D600 1.4Ghz CPU kernel
2.6.7-2.jul1-interactive 
Neuromancer 07:29:54 up 1:36, 6 users, load average: 1.65, 1.60, 1.82 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux