LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   add sunnet mask & default gateway (https://www.linuxquestions.org/questions/linux-networking-3/add-sunnet-mask-and-default-gateway-522748/)

Dawar 01-25-2007 12:41 PM

add subnet mask and default gateway by using YAST2 or from command prompt
 
OS: SLES 9

How to add subnet mask and default gateway by using YAST2?

from command prompt?

Dawar 01-25-2007 04:59 PM

I am waiting for any feedback. thanks
 
I am waiting for any feedback. thanks

:mad:

vinnywrite 01-25-2007 08:04 PM

hay isent YAST2 a packedge manager I dident know you could chang network setings with a packedg manager but I'm a noobey try netconfig type it in a terminal and hit enter

VINNY

jschiwal 01-25-2007 08:36 PM

In YaST2, select "Network Devices -> network card". Select your device and click on the "Edit" button. The IP address and netmask can be entered in the main area of the page ( on the top )

On the bottom of the page, note the "Detailed settings ..." section. To enter the default gateway, click on the "Routing ..." button. If you use DHCP, this will be ghosted because the DHCP server supplies the default gateway value.

When you have finished, you might find it interesting to see how this information was stored in a config script in /etc/sysconfig/network/

For example:
/etc/sysconfig/network/ifcfg-eth0 for the eth0 device.

One time at work I needed to change my network configuration on the fly. I simply had two ifcfg-eth0 files elsewhere that I would copy over the old one and restart the device with:
sudo /usr/sbin/rcnetwork restart eth0.
It was a lot faster than changing the IP address, netmask, etal. in XP. In NT you would have to configure TCP/IP and then reboot.

Quote:

Originally Posted by vinnywrite
hay isent YAST2 a packedge manager I dident know you could chang network setings with a packedg manager but I'm a noobey try netconfig type it in a terminal and hit enter

VINNY

Vinny, you might try using the spell checking features of this site before posting a message. My keyboard is going bad as well.


All times are GMT -5. The time now is 07:49 PM.