Changes between Version 15 and Version 16 of UsersGuide/Networking


Ignore:
Timestamp:
2017-09-23T23:05:38Z (7 years ago)
Author:
Jiri Svoboda
Comment:

Update inet commands for changeset:mainline,2752

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide/Networking

    v15 v16  
    3131
    3232In 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:
     33You can check the currently configured addresses via the `inet list-addr` command:
    3434
    3535{{{
    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
     37Addr/Width                 Link-Name    Addr-Name Def-MTU
     38========================== ============ ========= =======
     39127.0.0.1/24               net/loopback v4a       1500   
     40::1/128                    net/loopback v6a       1500   
     41fe80::5054:ff:fe12:3456/64 net/eth1     v6a       1500   
    4242}}}
    4343
    4444Let's check the available IP links:
    4545{{{
    46 / # loc show-cat iplink
    47 iplink:
    48        net/loopback : loopip
    49        net/eth1 : ethip
     46/ # inet list-link
     47Link-layer Address Link-Name    Def-MTU
     48================== ============ =======
     4900:00:00:00:00:00  net/loopback 1500   
     5052:54:00:12:34:56  net/eth1     1500   
    5051}}}
    5152
     
    5455
    5556{{{
    56 / # inet create 192.168.1.4/24 net/eth1 myaddr
     57/ # inet create-addr 192.168.1.4/24 net/eth1 myaddr
    5758}}}
    5859`myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inet` commands.
     
    6162
    6263{{{
    63 / # inet add-sr 0.0.0.0/0 192.168.1.1 default
     64/ # inet create-sr 0.0.0.0/0 192.168.1.1 default
    6465}}}
    6566