Saturday, July 19, 2008

Just take few times to modify your network setting on openSUSE 11  

Do you know how to modify network setting in system files?
Here you are.
Now, you can modify it to change any network setting that is a easy way.

  • 1. If you want to change now, please modify ip and netmask of the system file ifcfg-xxxxx (xxxxx wil be MAC address that can be changed to below example ifcfg-eth0 or ifcfg-wlan0)

#cd /etc/sysconfig/network/ #ls

config dhcp6r ifcfg-eth0 ifcfg.template if-down.d if-up.d routes
dhcp dhcp6s ifcfg-lo ifcfg-wlan0 ifroute-lo providers scripts

#vi ifcfg-eth0

BOOTPROTO='dhcp' ---> you can change it to dhcp or static BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='xxx.xxx.xxx.xxx' ---> Here is static ip address setting
MTU=''
NAME='88E8055 PCI-E Gigabit Ethernet Controller'
NETMASK='255.255.255.0' ---> Here is subnet mask setting for static ip
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'

#vi ifcfg-wlan0

BOOTPROTO='dhcp' ---> you can change it to dhcp or static
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='xxx.xxx.xxx.xxx' ---> you can also assign ip address in wireless device
MTU=''
NAME='PRO/Wireless 4965 AG or AGN Network Connection'
NETMASK='255.255.255.0' ---> Here is subnet mask setting for static ip
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='yes'
WIRELESS_AP=''
WIRELESS_AUTH_MODE='open'
WIRELESS_BITRATE='auto'
WIRELESS_CA_CERT=''
WIRELESS_CHANNEL=''
WIRELESS_CLIENT_CERT=''
WIRELESS_CLIENT_KEY=''
WIRELESS_CLIENT_KEY_PASSWORD=''
WIRELESS_DEFAULT_KEY='0'
WIRELESS_EAP_AUTH=''
WIRELESS_EAP_MODE=''
WIRELESS_ESSID=''
WIRELESS_FREQUENCY=''
WIRELESS_KEY=''
WIRELESS_KEY_0=''
WIRELESS_KEY_1=''
WIRELESS_KEY_2=''
WIRELESS_KEY_3=''
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_NICK=''
WIRELESS_NWID=''
WIRELESS_PEAP_VERSION=''
WIRELESS_POWER='yes'
WIRELESS_WPA_ANONID=''
WIRELESS_WPA_IDENTITY=''
WIRELESS_WPA_PASSWORD=''


  • 2 If you are using static ip now. You can add default route in below file.

#cd /etc/sysconfig/network
#vi routes

default 192.168.1.1

Ps: Is it a easy way for you?

Stumble Upon Toolbar Digg! diigo it

Related Posts by Categories