
link
This object represents a network device.
address
This object represents the IP address of device.
neighbour
This object represents a ARP or NDISC cache entry.
route
This object represents the routing table entry.
rule
This object represents a rule in the routing policy database.
maddress
This object represents a multicast address.
mroute
This object represents a multicast routing cache entry.
tunnel
This object represents a tunnel over IP.
If no command is given, the default command is used, usually
list
.
Change the state of a device with the command
ip link
set
device_name command
. For example, to deactivate device eth0, enter
ip
link seteth0 down
. To activate it again, use
ip link seteth0 up
.
After activating a device, you can configure it. To set the IP address, use
ip addr
add
ip_address
+ dev
device_name
. For example, to set the address of the
interface eth0 to 192.168.12.154/30 with standard broadcast (option
brd
), enter
ip
addr add 192.168.12.154/30 brd + dev eth0
.
To have a working connection, you must also configure the default gateway. To set a
gateway for your system, enter
ip route get gateway_ip_address
. To
translate one IP address to another, use
nat
:
ip route add
nat ip_address via other_ip_address
.
Basic Networking
591
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......