LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2007, 12:41 PM   #1
Dawar
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
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?

Last edited by Dawar; 01-25-2007 at 05:00 PM.
 
Old 01-25-2007, 04:59 PM   #2
Dawar
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I am waiting for any feedback. thanks

I am waiting for any feedback. thanks

 
Old 01-25-2007, 08:04 PM   #3
vinnywrite
Member
 
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
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
 
Old 01-25-2007, 08:36 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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.

Last edited by jschiwal; 01-25-2007 at 08:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Guardian OS - cannot add default gateway thejackel Linux - Server 1 08-27-2006 07:12 AM
How to add default gateway in /etc/sysconfig/network-scripts/* zamri Linux - Networking 2 09-06-2005 10:32 AM
Apache default create mask bbqjeanvaljean Linux - General 1 02-22-2005 08:02 PM
Get the default gateway / net mask idit Linux - Networking 1 11-21-2004 08:39 AM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration