Changes between Version 15 and Version 16 of UsersGuide/Networking
- Timestamp:
- 2017-09-23T23:05:38Z (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersGuide/Networking
v15 v16 31 31 32 32 In case automatic configuration is not available, you can configure networking from the command line. 33 You can always check the current setting via the `inet` command without arguments:33 You can check the currently configured addresses via the `inet list-addr` command: 34 34 35 35 {{{ 36 / # inet 37 Configured addresses: 38 [Addr/Width] [Link-Name] [Addr-Name] [Def-MTU] 39 127.0.0.1/24 net/loopback v4a 1500 40 Static routes: 41 None 36 / # inet list-addr 37 Addr/Width Link-Name Addr-Name Def-MTU 38 ========================== ============ ========= ======= 39 127.0.0.1/24 net/loopback v4a 1500 40 ::1/128 net/loopback v6a 1500 41 fe80::5054:ff:fe12:3456/64 net/eth1 v6a 1500 42 42 }}} 43 43 44 44 Let's check the available IP links: 45 45 {{{ 46 / # loc show-cat iplink 47 iplink: 48 net/loopback : loopip 49 net/eth1 : ethip 46 / # inet list-link 47 Link-layer Address Link-Name Def-MTU 48 ================== ============ ======= 49 00:00:00:00:00:00 net/loopback 1500 50 52:54:00:12:34:56 net/eth1 1500 50 51 }}} 51 52 … … 54 55 55 56 {{{ 56 / # inet create 192.168.1.4/24 net/eth1 myaddr57 / # inet create-addr 192.168.1.4/24 net/eth1 myaddr 57 58 }}} 58 59 `myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inet` commands. … … 61 62 62 63 {{{ 63 / # inet add-sr 0.0.0.0/0 192.168.1.1 default64 / # inet create-sr 0.0.0.0/0 192.168.1.1 default 64 65 }}} 65 66