课程: Linux System Engineer: Networking and SSH

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Get IP address, subnet mask, and default gateway

Get IP address, subnet mask, and default gateway

课程: Linux System Engineer: Networking and SSH

Get IP address, subnet mask, and default gateway

- [Instructor] Traditionally, Linux used the net tools commands including ifconfig, netstat, and route. These commands have mostly been superseded by the iproute2 suite of tools, including the IP command. I find the syntax of the Legacy Tools easy to remember, but in time they may no longer be available, so it's important to migrate to iproute. We will install the net tools package in this course so we have access to the Legacy commands, as well as the replacements which are installed by default. To do so in a terminal type sudo yum -y install net-tools, and hit Enter. Then type in your password. If the net tools packet is already installed, it'll let you know. We'll reference both the Legacy commands and the replacements, so users with prior experience can migrate to the new commands easier. To get IP address and network mask information using the Legacy tools, we'll type in clear, and then type in ifconfig. From this output, we can see the IP version four and IP version six…

内容