Linux下加子接口IP,Ping指定源IP

10:49:00 AM 0 Comments

    **添加子接口IP

    #ifconfig eth2:1 192.168.4.23 netmask 255.255.255.0 up

    **去掉子接口IP

    #ifconfig eth2:1 192.168.4.23 netmask 255.255.255.0 down

    **指定原IP ping

    #ping -I 192.168.4.23 -c 192.168.12.100

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.