Difference between revisions of "Ip (command)"
Jump to navigation
Jump to search
(→Linux) Tags: Mobile web edit, Mobile edit |
(→Linux) Tags: Mobile web edit, Mobile edit |
||
Line 22: | Line 22: | ||
* <code>ip addr add 192.168.0.xx/24 dev eth0</code> | * <code>ip addr add 192.168.0.xx/24 dev eth0</code> | ||
− | Default gateway: | + | Default [[gateway]]: |
* <code>ip route add default via 192.0.2.2 dev eth0</code> | * <code>ip route add default via 192.0.2.2 dev eth0</code> | ||
Revision as of 08:17, 19 August 2020
This article is a Draft. Help us to complete it.
Contents
Linux
ip route show
. See also:netstat -rnv
ip route add
ip route del default
ip link show
ip link set dev eth0 mtu 9000
(Jumbo frames)
Policy based routing / Source routing policy:
ip route add from <source>/<mask> table <name> ip route add 1.2.3.4/24 via <router> dev eth4 table <name>
ip link add wg0 type wireguard
ip link set eth0 up
Set an IP address:
ip addr add 192.168.0.xx/24 dev eth0
Default gateway:
ip route add default via 192.0.2.2 dev eth0
ip route add default via 192.0.2.2 dev eth55
Cannot find device "eth55"
Cisco IOS
Related commands
See also
ip
[link, route]
,ifconfig
netstat
ss
lsof
ping
ethtool
mii-tool
arping
nmcli
(RHEL)route
networkctl
,netplan
,tc
- TCP/IP, Transport protocol, UDP, SCTP, QUIC, subnet mask, Routing protocols: BGP, routing table, Policy based routing, multicast, TCP Fast Open, RDP, TTL, RTT, MPTCP, Large send offload (LSO): (TSO, GRO, GSO, TCP checksum),
ethtool
, SCTP, 5-Tuple, Check TCP connectivity, TCP window size,/proc/sys/net/ipv4/tcp_rmem
, ack, List of TCP ports, localhost, broadcast address
Advertising: