7.12.07
Linux Info
Linux Info: "iproute commands Prerequisites iproute2 package kernel configure options: CONFIG_IP_ADVANCED_ROUTER=y CONFIG_IP_MULTIPLE_TABLES=y CONFIG_IP_ROUTE_MULTIPATH=y menuconfig path: - Networking --> -- Networking Support --> --- Networking options --> ---- TCP/IP networking ----- IP: Advanced router ----- IP: policy routing ----- IP: equal cost multipath Enable IP Forwarding echo '1' > /proc/sys/net/ipv4/ip_forward echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter IP LINK (cmd subset) Show hardware address ip link ip link [show|ls|list|sh] Take an interface up/down ip link set dev (device) up ip link set (device) up ip link set dev (device) down ip link set (device) up Change the MAC address of the interface ip link set dev (device) address (arp address) IP ADDRESS (cmd subset) Show ip address ip addr ip addr [show|sh|list|ls] ip addr show dev eth0 # show specific device Show ip addresses (the old 'ifconfig' way) ifconfig -a ifconfig Assign IP address to interface ip addr [add|a] (address)/(mask) dev (device) ex: ip addr add 192.168.1.2/24 dev eth0 Assign IP address to interface (the old 'ifconfig' way) ifconfig eth0 192.168.1.2 netmask 255.255.255.0 Remove IP address from interface ip addr [delete|del|d] (address)/(mask) dev (devic"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment