In Linux, view the gateway, subnet mask, IP address, and broadcast address.

Source: Internet
Author: User

In Linux, view the gateway, subnet mask, IP address, and broadcast address.

[Root @ glnode04 vm01-CentOS-5.5] # Cat/etc/sysconfig/network-scripts/ifcfg-eth0
Device = eth0
Onboot = Yes
Bootproto = none
Ipaddr = 10.10.111.4 IP Address
Netmask = 255.255.255.0.0 Subnet Mask
Gateway = 10.10.11.254 Gateway
Type = Ethernet
Userctl = No
Ipv6init = Yes
Peerdns = Yes

[root @ glnode04 vm01-CentOS-5.5] # ifconfig
eth0 link encap: Ethernet hwaddr 00: 1D: 7d: 48: 38: 7A
Inet ADDR: 10.10.111.4 bcast: 10.10.255.255 mask: 255.255.0.0 Nic eth0 IP address, broadcast address, subnet mask
inet6 ADDR: fe80: 21: 7dff: fe48: 387a/64 scope: link
up broadcast running Multicast MTU: 1500 Metric: 1
RX packets: 106320 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 86190 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX Bytes: 35816363 (34.1 MIB) TX Bytes: 118782254 (113.2 MIB)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.