Difference between revisions of "Ifconfig"
From Hackepedia
Jump to navigationJump to search (Added virt. interfaces) |
|||
Line 1: | Line 1: | ||
− | To set or read settings of a [[network interface]] in UNIX you use the ifconfig command. To see all interfaces in a system type: | + | To set or read settings of a [[network interface]] in UNIX you use the <code>ifconfig</code> command. To see all interfaces in a system type: |
$ ifconfig -a | $ ifconfig -a | ||
+ | |||
+ | Specific interfaces can be viewed as well: | ||
+ | |||
+ | $ ifconfig hme0 | ||
+ | |||
+ | |||
+ | <code>ifconfig</code> is also used to view or in the case of a [[virtual interface]] (in this case off the third physical interface on a Linux box): | ||
+ | |||
+ | $ ifconfig eth2:1 |
Revision as of 08:31, 13 October 2005
To set or read settings of a network interface in UNIX you use the ifconfig
command. To see all interfaces in a system type:
$ ifconfig -a
Specific interfaces can be viewed as well:
$ ifconfig hme0
ifconfig
is also used to view or in the case of a virtual interface (in this case off the third physical interface on a Linux box):
$ ifconfig eth2:1