Network Configuration:
/Etc/sysconfig/network
NETWORKING = yes
NETWORKING_IPV6 = yes
HOSTNAME = localhost. localdomain
GATEWAY = 192.168.5.1
/Etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE = eth0 // used to set the name of the Network Interface
BOOTPROTO = static // set whether the network interface is configured as static or dhcp;
BROADCAST = 192.168.5.255
HWADDR = 00: 0C: 29: D1: 42: 3F
IPADDR = 192.168.5.247 // set the network interface address
GATEWAY = 192.168.5.1 // sets the default GATEWAY for the network interface
20176addr =
IPV6PREFIX =
NETMASK = 255.255.255.0 // set the subnet mask of the Network Interface
NETWORK = 192.168.5.0
ONBOOT = yes
# Iwconfig lists wireless network adapters, generally "wlan0"
Edit/etc/sysconfig/wpa_supplicant
INTERFACE = "-iwlan0"
Edit/etc/wpa_supplicant/wpa_supplicant.conf
Wpa_passphrase essid password>/etc/wpa_supplicant/wpa_supplicant.conf
Network = {
Ssid = "NETWORKSSID"
Scan_ssid = 1
Key_mgmt = WPA-PSK
Psk = "NETWORKPSK"
}
--------------------------------------
VPN configuration
1. Install the tool
# Yum install ppp
# Yum install pptp
# Yum install pptp-setup
2. VPN configuration
# Pptpsetup -- create vpn_company -- server vpn.company.com -- user vpn_user
-- Password vpn_pass -- encrypt
3. Check Configuration results
# Cat/etc/ppp/chap-secrets
Vpn_user vpn_company "vpm_pass "*
# Cat/etc/ppp/peers/vpn_company
Pty "pptp vpn.company.com -- nolaunchpppd"
Lock
Refuse-eap
Noauth
Nobsdcomp
Nodeflate
Name vpn_user
Remotename vpn_company
Ipparam vpn_company
Require-mppe-128
4. register the kernel module
# Modprobe ppp_mppe
5. Connect to the VPN
# Pppd call vpn_company
6. Check the connection status
Check logs/var/log/messages
7. Disconnect
# Killall pppd