Changes between Version 6 and Version 7 of UsersGuide/Networking


Ignore:
Timestamp:
2012-06-13T22:10:10Z (12 years ago)
Author:
Jiri Svoboda
Comment:

loc show-cat iplink output

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide/Networking

    v6 v7  
    3535}}}
    3636
    37 Now, let's assume you want to configure HelenOS to have address 192.168.1.4. This is simply achieved by typing:
     37Let's check the available IP links:
     38{{{
     39/ # loc show-cat iplink
     40iplink:
     41       net/loopback : loopip
     42       net/eth1 : ethip
     43}}}
     44
     45`net/eth1` is one of the available links, in this case the first discovered Ethernet adapter.
     46Now, let's assume you want to configure net/eth1 to have address 192.168.1.4. This is simply achieved by typing:
    3847
    3948{{{
    4049/ # inet create 192.168.1.4/24 net/eth1 myaddr
    4150}}}
    42 
    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.
     51`myaddr` is a user-defined name given to the configured address. It is used to identify the address to other `inet` commands.
    4452
    4553You may also want to configure the default gateway for your networked HelenOS system. Provided the gateway is at 192.168.1.1, type: