CentOS Linux 6.5 network and VPN Client Configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.