Podcast
Questions and Answers
What is the purpose of the Ref column in the output of netstat -r?
What is the purpose of the Ref column in the output of netstat -r?
What is the purpose of the metric value in the output of ip route?
What is the purpose of the metric value in the output of ip route?
What is the purpose of the pref value in the output of ip -6 route?
What is the purpose of the pref value in the output of ip -6 route?
What command can be used to add and remove routes?
What command can be used to add and remove routes?
Signup and view all the answers
What is the purpose of the proto field in the output of ip route?
What is the purpose of the proto field in the output of ip route?
Signup and view all the answers
Study Notes
Configuring Low-Level Options
- The
ip link
command is used to configure low-level interface or protocol settings, such as VLANs, ARP, or MTUs, or disabling an interface. -
ip link
can be used to disable or enable an interface, similar toifconfig
. - Example of disabling an interface:
ip link set dev enp0s8 down
- Example of enabling an interface:
ifconfig enp0s8 up
Adjusting an Interface's MTU
-
ip link
orifconfig
can be used to adjust an interface's MTU. - Example of setting MTU using
ip link
:ip link set enp0s8 mtu 2000
- Example of setting MTU using
ifconfig
:ifconfig enp0s3 mtu 1500
The Routing Table
- The commands
route
,netstat -r
, andip route
can be used to view the routing table. -
route
orip route
must be used to modify the routing table. - The routing table shows the destination, gateway, interface, protocol, scope, metric, and IPv6 route preference.
Managing Routes
- Routes can be managed using
route
orip route
. - Example of adding a route using
route
: not shown in the text. - Example of removing a route using
route
: not shown in the text.
ip Command
- The
ip
command is a modern and versatile utility used to configure network interfaces and review their states.
ifconfig Command
- The
ifconfig
command is a legacy utility used to configure network interfaces and review their states.
netstat Command
- The
netstat
command is a legacy command used to view current network connections and route information.
route Command
- The
route
command is a legacy command used to view or modify a system's routing table.
ip Route Output
- The output of
ip route
andip -6 route
shows the destination, optional address followed by interface, routing protocol, scope, metric, and IPv6 route preference.
Routing Table Columns
- The Ref column shows the reference count, or number of uses of a route.
- The Use column shows the number of lookups for a route.
- The MSS column shows the maximum segment size for TCP connections over that route.
- The Window column shows the default TCP window size.
- The irtt column shows the round trip time for packets on this route.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Learn how to use the ip link command to configure low-level interface or protocol settings such as VLANs, ARP, or MTUs, or disabling an interface.