Changes between Version 5 and Version 6 of UsersGuide/Networking


Ignore:
Timestamp:
2012-05-15T19:58:05Z (12 years ago)
Author:
Jiri Svoboda
Comment:

Update for inet and loc renaming/improvements

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide/Networking

    v5 v6  
    2020== Network configuration ==
    2121
    22 As of now, network can be configure only manually using the `inetcfg` command.
     22As of now, network can be configure only manually using the `inet` command.
    2323
    2424=== Manual network configuration ===
    2525
    26 Manual network configuration is quite easy. You can always check the current setting via the `inetcfg` command without arguments:
     26Manual network configuration is quite easy. You can always check the current setting via the `inet` command without arguments:
    2727
    2828{{{
    29 / # inetcfg
     29/ # inet
    3030Configured addresses:
     31    [Addr/Width] [Link-Name] [Addr-Name] [Def-MTU]
    3132    127.0.0.1/24 net/loopback v4a 1500
    3233Static routes:
     
    3738
    3839{{{
    39 / # inetcfg create 192.168.1.4/24 net/eth1 myaddr
     40/ # inet create 192.168.1.4/24 net/eth1 myaddr
    4041}}}
    4142
    42 `net/eth1` is one of the available links, in this case the first discovered network card. You may use the `locinfo` command to see what other links are there in the system. `myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inetcfg` commands.
     43`net/eth1` is one of the available links, in this case the first discovered network card. You may use the `loc show-cat iplink` command to see what other links are there in the system. `myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inet` commands.
    4344
    4445You may also want to configure the default gateway for your networked HelenOS system. Provided the gateway is at 192.168.1.1, type:
    4546
    4647{{{
    47 / # inetcfg add-sr 0.0.0.0/0 192.168.1.1 default
     48/ # inet add-sr 0.0.0.0/0 192.168.1.1 default
    4849}}}
    4950
    50 Your HelenOS system is now configured for networking. Note that `inetcfg` understands also other commands that you can use to fix any potential problems with the configuration. To see the complete list, just type:
     51Your HelenOS system is now configured for networking. Note that `inet` understands also other commands that you can use to fix any potential problems with the configuration. To see the complete list, just type:
    5152
    5253{{{
    53 / # inetcfg -h
     54/ # inet -h
    5455}}}
    5556