program | obsoleted by |
---|---|
arp | ip neigh |
ifconfig | ip addr |
ipmaddr | ip maddr |
iptunnel | ip tunnel |
route | ip route |
nameif | ifrename |
mii-tool | ethtool |
ip
iproute2
IPROUTE2 Utility Suite Howto
VLAN for iproute2
ip [ OPTIONS ] OBJECT [ COMMAND [ ARGUMENTS ]] link - physical or logical network device. address - protocol (IPv4 or IPv6) address on a device. neighbour - ARP or NDISC cache entry. route - routing table entry. rule - rule in routing policy database. maddress - multicast address. mroute - multicast routing cache entry. tunnel - tunnel over IP.
# Add IPv4 address $ ip addr add 10.41.0.2/8 dev eth0 # Bring interface up $ ip link set eth0 up # Add VLAN virtual interface $ ip link add link eth0 name eth0.100 type vlan id 100 # Add IPv4 address to VLAN virtual interface and bring it up $ ip addr add 192.168.100.1/24 brd 192.168.100.255 dev eth0.100 $ ip link set dev eth0.100 up
ifconfig
arp, ifconfig, ipmaddr, iptunnel, route, nameif, mii-tool
net-tools (obsolete)