Displaying IP Address Setup Information with the ip Tool

One common use of the ip tool is to display information about the use of IP addresses for a given interface. The command to use for this purpose is ip address show. Note that if it is clear what exactly you want and there can be no confusion between options, you can specify the options used with the ip command in short notation as well; for example, ip a s would perform the same task as ip address show.This command would display the information shown in Figure 13-11.

Re £dil View Terminal Tabs Help laksmi:/ # ip a s

1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ethO: ¬ęBROADCAST.MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:0c:29:c7:82:f6 brd ff:ff:ff:ff:ff:ff inet brd scope global ethO inet6 fe80::20c:29ff:fee?:82f6/64 scope link validlft forever preferredlft forever 3: sitO: <NOARP> mtu 1480 qdisc noop link/sit brd

Figure 13-11. The ip address show command gives complete information about the current configuration of the network interfaces in your server.

In Figure 13-11, you can see that information for three different network interfaces appears. First you see the information for the loopback interface, and then you can see the eth0 device, which is followed by the sit0 device. The latter is a special virtual device that you can use to encapsulate IPv6 into IPv4 packets; it is needed on networks where both IPv4 and IPv6 packets are sent. Note that this sit0 device is always created automatically, even if you don't use IPv6 at all on your network.

Was this article helpful?

0 0

Post a comment