sudo ip address add <ip-address>/<netmask> dev <interface>例:
sudo ip address add 10.231.141.231/24 dev eth0
2. 永久性 /etc/network/interfaces
iface eth0 dhcp
iface eth0 inet static
address 10.231.141.231/24
iface eth0 inet static
address 10.241.141.231/24
重新啟動
sudo ifdown eth0 && sudo ifup eth0
補充:The iproute2 suite:
The iproute2 suite is the communication suite for interprocess communication beween the kernel and the user space via the netlink protocol. It should replace the whole standard network tools. Here is what they replace:
ifconfig
-->ip addr
andip link
route
-->ip route
arp
-->ip neigh
iptunnel
-->ip tunnel
ipmaddr
-->ip maddr
netstat
-->ss
0 意見:
張貼留言