入了个OVH的小鸡鸡
757
- WordPress迷2017-03-24金牌会员88862
买了几个IP,无奈加上就链接不了SSH。。
按照这个教程的:https://docs.ovh.com/gb/en/cloud/dedicated/network-ipaliasing/#debian-derivatives
求大佬指点。debian 8
默认为添加IP的时候是这样:
47141
修改配置文件为这样之后就连接不上了,按照上面的官方doc配置的:
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- - source /etc/network/interfaces.d/*
- - # The loopback network interface
- auto lo
- iface lo inet loopback
- - # The primary network interface
- - auto eth0
- iface eth0 inet static
- address 151.80.155.222
- netmask 255.255.255.0
- broadcast 151.80.155.255
- gateway 151.80.155.254
- - auto eth0:0
- iface eth0:0 inet static
- address 91.134.217.39
- netmask 255.255.255.255
- - auto eth0:1
- iface eth0:1 inet static
- address 91.134.217.102
- netmask 255.255.255.255
- - auto eth0:2
- iface eth0:2 inet static
- address 91.134.217.188
- netmask 255.255.255.255
- - auto eth0:3
- iface eth0:3 inet static
- address 91.134.217.208
- netmask 255.255.255.255
- - auto eth0:4
- iface eth0:4 inet static
- address 91.134.217.213
- netmask 255.255.255.255
- - # IPFO 1
- post-up /sbin/ifconfig eth0:0 91.134.217.39 netmask 255.255.255.255 broadcast 91.134.217.39
- pre-down /sbin/ifconfig eth0:0 down
- - # IPFO 2
- post-up /sbin/ifconfig eth0:1 91.134.217.102 netmask 255.255.255.255 broadcast 91.134.217.102
- pre-down /sbin/ifconfig eth0:1 down
- - # IPFO 3
- post-up /sbin/ifconfig eth0:2 91.134.217.188 netmask 255.255.255.255 broadcast 91.134.217.188
- pre-down /sbin/ifconfig eth0:2 down
- - # IPFO 4
- post-up /sbin/ifconfig eth0:3 91.134.217.208 netmask 255.255.255.255 broadcast 91.134.217.208
- pre-down /sbin/ifconfig eth0:3 down
- - # IPFO 5
- post-up /sbin/ifconfig eth0:4 91.134.217.213 netmask 255.255.255.255 broadcast 91.134.217.213
- pre-down /sbin/ifconfig eth0:4 down
- 复制代码
求指点。
小鸡默认的配置
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- - source /etc/network/interfaces.d/*
- - # The loopback network interface
- auto lo
- iface lo inet loopback
- - # The primary network interface
- auto eth0
- allow-hotplug eth0
- iface eth0 inet dhcp
- 复制代码