5 IP Commands
ip ifconfig
Configure interface parameters.
SYNTAX:
ip ifconfig | intf = <interface name> |
| |
| [mtu = |
| |
| [status = <{downup}>] |
| |
| [hwaddr = <hwaddress>] |
| |
| [group = <number>] |
| |
|
|
| |
intf | Always specify eth0. | REQUIRED | |
[mtu] | A number between 293 and 20000. | OPTIONAL | |
| Represents the maximum transmission unit, i.e. the maximum packet |
| |
| size (including IP header) to use. |
| |
[status] | The administrative status of the interface. | OPTIONAL | |
| Choose between: |
| |
| G | down |
|
| G | up |
|
[hwaddr] | The hardware address (e.g. the Ethernet MAC address). | OPTIONAL | |
[group] | The group this interface belongs to. | OPTIONAL | |
| Do not use this parameter. For internal use only. |
|
EXAMPLE:
| =>ip iflist |
|
|
|
|
|
|
|
| |
| Interface | GRP | MTU | RX | TX | TX±DROP | STATUS | HWADDR | ||
| 0 | loop | 1 | 1500 | 116 | 0 | 0 | UP |
|
|
| 1 | eth0 | 2 | 3000 | 21045795 | 1019664 | 0 | UP | 00:80:9f:24:ab:c | |
| f |
|
|
|
|
|
|
|
|
|
| =>ip ifconfig intf=eth0 mtu=1500 |
|
|
|
|
| ||||
| =>ip iflist |
|
|
|
|
|
|
|
| |
| Interface | GRP | MTU | RX | TX | TX±DROP | STATUS | HWADDR | ||
| 0 | loop | 1 | 1500 | 116 | 0 | 0 | UP |
|
|
| 1 | eth0 | 2 | 1500 | 21054963 | 1025417 | 0 | UP | 00:80:9f:24:ab:c | |
| f |
|
|
|
|
|
|
|
|
|
| => |
|
|
|
|
|
|
|
|
|
RELATED COMMANDS: |
|
ip config | Show/set global IP stack configuration options. |
3EC 16982 AGAA TCZZA Ed. 01 |
| 91 / 138 |
|
|
|