ユーザ用ツール

サイト用ツール


サイドバー

このページの翻訳:



最近の更新



Tag Cloud

02_freebsd:80_unixコマンド:ip

文書の過去の版を表示しています。


ipコマンド/IPエイリアス追加

IPエイリアス追加

このIP追加方法だと、secondaryとしてIPが追加される。

# ip addr add 192.168.100.5/24 brd 192.168.100.255 dev eth0

IP削除

# ip addr del 192.168.100.5/24 brd 192.168.100.255 dev eth0

IP確認

# 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コマンドでVLANタグ追加

タグ追加

ip link add link eth1 name eth1.210 type vlan id 210

UP

ip link set eth1.210 up

Down

ip link set eth1.210 down

削除

ip link del eth1.210

IPコマンドGW

追加

ip route add default via 192.168.11.254

削除

02_freebsd/80_unixコマンド/ip.1560990041.txt.gz · 最終更新: 2019/06/20 09:20 by matsui