linode pptp 용 개인 ip 설정

2745 단어 node
http://library.linode.com/networking/configuring-static-ip-interfaces/#debian__amp__ubuntu
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
#auto eth0 eth0:0 eth0:1
auto eth0 eth0:0
# eth0 - This is the main IP address that will be used for most outbound connections.
# The address, netmask and gateway are all necessary.
iface eth0 inet static
 address 74.207.245.31
 netmask 255.255.255.0
 gateway 74.207.245.1
# eth0:0 - Private IPs have no gateway (they are not publicly routable) so all you need to
# specify is the address and netmask.
iface eth0:0 inet static
 address 192.168.153.213
 netmask 255.255.128.0
sudo /etc/init.d/networking restart
ping 192.168.153.213
ping boy38girl.com
Debian & Ubuntu Since Ubuntu is based on Debian, their configuration is the same. The relevant file to edit is /etc/network/interfaces - the file syntax is fairly straightforward, but you can read the comments in the file for more details about what each line does.In the example below, change the IP addresses to reflect the values shown under the "Remote Access" tab of the Linode Manager.File: /etc/network/interfaces
# The loopback interface auto lo iface lo inet loopback  # Configuration for eth0 and aliases  # This line ensures that the interface will be brought up during boot. auto eth0 eth0:0 eth0:1  # eth0 - This is the main IP address that will be used for most outbound connections. # The address, netmask and gateway are all necessary. iface eth0 inet static address 12.34.56.78 netmask 255.255.255.0 gateway 12.34.56.1  # eth0:0 # This is a second public IP address. iface eth0:0 inet static address 34.56.78.90 netmask 255.255.255.0  # eth0:1 - Private IPs have no gateway (they are not publicly routable) so all you need to # specify is the address and netmask. iface eth0:1 inet static address 192.168.133.234 netmask 255.255.128.0 
Restart networking:
/etc/init.d/networking restart 
From the Linode, ping each of the default gateways listed on the "Remote Access" tab of the Linode Manager:
ping 12.34.56.1 ping 98.76.54.1

좋은 웹페이지 즐겨찾기