このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
最近の更新
このIP追加方法だと、secondaryとしてIPが追加される。
# ip addr add 192.168.100.5/24 brd 192.168.100.255 dev eth0
# ip addr del 192.168.100.5/24 brd 192.168.100.255 dev eth0
# ip -4 a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 192.168.100.195/24 brd 192.168.100.255 scope global eth0 inet 192.168.100.1/24 brd 192.168.100.255 scope global secondary eth0 inet 192.168.100.5/24 brd 192.168.100.255 scope global secondary eth0
ip link add link eth1 name eth1.210 type vlan id 210
ip link set eth1.210 up
ip link set eth1.210 down
ip link del eth1.210
ip route add default via 192.168.11.254
ip route delete default
ip link set eth0 mtu 9000
eth0を使って、eth0.100としてvlan 100のNICを作成
ip link add link eth0 name eth0.100 type vlan id 100
# ip link add bond0 type bond # ip link set bond0 type bond miimon 100 mode 802.3ad # ip link set eth0 down # ip link set eth0 master bond0 # ip link set eth1 down # ip link set eth1 master bond0 # ip link set bond0 up
ip link add name ethdummy10 type dummy ip link set dev ethdummy10 master [bridge] ip addr add 192.168.100.101/24 dev ethdummy10 ip link delete ethdummy10