Re: [newbie] Gateway config???

2003-12-27 Thread Rick Kunath
On Saturday 27 December 2003 12:35 pm, Sharrea Day wrote:
> IIRC, you only need GATEWAYDEV if you use a dialup modem (as I do). Mine
> goes:

Not entirely correct...

>
> $ cat /etc/sysconfig/network
> NETWORKING=yes
> GATEWAYDEV=ppp0
> HOSTNAME=tbird.nofish.net.nz
>

I have a machine here with both a network card and a wireless card in it. The 
wireless card is assigned eth0 and the NEthernet card is assigned eth1. I 
have set linux not to start either interface at boot time and have a series 
of menu entries in the main menu which allow me to bring either interface up 
or down as I wish.

Here is an example of the commands I use in the main menu for eth1 -

/usr/sbin/usernetctl eth1 up ( this menu entry brings the interface up)

/usr/sbin/usernetctl eth1 down  (this menu entry brings it down)

Change the interface designator as appropriate for the interface you want to 
control. I have four of these entries to allow for control of the two 
interfaces.

Note that the variable USERCTL=yes must be present in the ifcfg file for the 
interface you wish to control in this way.

Here is my ifcfg-eth1 file - 

DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.1.98
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=no
GATEWAYDEV=eth1
TYPE=Ethernet
USERCTL=yes


You'll see the USERCTL needed to allow the user to control the interface, and 
the GATEWAYDEV specifying this interface as the gateway device when it is 
active.

I have found this a handy way to select the interface I wish to use from the 
main menu of KDE.

Rick Kunath


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Gateway config???

2003-12-27 Thread Sharrea Day
On Sat, 27 Dec 2003 08:48, Adolfo Bello wrote:
> On Fri, 2003-12-26 at 15:03, craig wrote:
> > Every time I boot up I have to assign my default gateway manually so I
> > can get online. Is there a file that I need to add the gateway to?
> >
> > I've tried the network file in /etc/sysconfig

> /etc/sysconfig/network
> Parameters are GATEWAY and GATEWAYDEV

IIRC, you only need GATEWAYDEV if you use a dialup modem (as I do). Mine 
goes:

$ cat /etc/sysconfig/network
NETWORKING=yes
GATEWAYDEV=ppp0
HOSTNAME=tbird.nofish.net.nz

Sharrea
-- 
Help Microsoft stamp out piracy - give Linux to a friend today


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Gateway config???

2003-12-26 Thread Shawn Protsman
Hi Craig,

What do you have in /etc/sysconfig?

[EMAIL PROTECTED] sysconfig]$ cat /etc/sysconfig/network
HOSTNAME=aragorn.foodoo.com
NETWORKING=yes
GATEWAY=172.16.1.1
On Friday, Dec 26, 2003, at 13:03 US/Central, craig wrote:

Every time I boot up I have to assign my default gateway manually so I 
can
get online. Is there a file that I need to add the gateway to?

I've tried the network file in /etc/sysconfig

Any suggestions

Thanks

Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] Gateway config???

2003-12-26 Thread Adolfo Bello
On Fri, 2003-12-26 at 15:03, craig wrote:
> Every time I boot up I have to assign my default gateway manually so I can 
> get online. Is there a file that I need to add the gateway to?
> 
> I've tried the network file in /etc/sysconfig
> 
> Any suggestions
> 
> Thanks
> 
/etc/sysconfig/network

Parameters are GATEWAY and GATEWAYDEV

HTH

-- 
Adolfo A. Bello B. <[EMAIL PROTECTED]>
Make your posts more effective. Learn how at
http://mandrake.vmlinuz.ca/bin/view/Main/MandrakeMailingListEtiquette


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] Gateway config???

2003-12-26 Thread craig
Every time I boot up I have to assign my default gateway manually so I can 
get online. Is there a file that I need to add the gateway to?

I've tried the network file in /etc/sysconfig

Any suggestions

Thanks

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com