2.5. Networking configuration

6WIND provides a command line interface that can be used to configure your system.

  1. Log in as admin to use it:
login: admin
Password: admin

router{}

See also

The CLI User Guide for details.

2.5.1. Configuring the management interface manually and enabling SSH server

To configure an address on the management interface and enable SSH from the CLI, proceed as follows:

  1. Generate SSH host keys for the SSH server

    router{}ssh host-key all
    
  2. Create a new configuration init_turbo:

    router{}new conf init_turbo
    router{init_turbo}
    
  3. Configure an address on interface eth0:

    router{init_turbo}eth0
    router{init_turbo-eth0}ipaddress 192.168.0.2/24
    
  4. Add a default route:

    router{init_turbo-eth0}rtg
    router{init_turbo-rtg}route 0.0.0.0/0 192.168.0.1
    
  5. Enable SSH server

    router{init_turbo-rtg}gen
    router{init_turbo-gen}ssh enable
    
  6. Save the configuration

    router{init_turbo-gen}save
    router{}
    
  7. Apply the configuration

    router{}apply init_turbo
    NOTICE(0): Interface eth3 is not configured in XMS
    NOTICE(0): Interface eth2 is not configured in XMS
    NOTICE(0): Interface eth1 is not configured in XMS
    

    Now the equipement can be accessed via a remote SSH client at address 192.168.0.2.

  8. To make this configuration applied at each startup, make it the start configuration:

    router{}copy running start
    WARNING: Do you really want to overwrite the start configuration (y/n)? [n]: y
    

2.5.2. Configuring the management interface via DHCP and enabling SSH server

To configure an address and default route via DHCP on the management interface and enable SSH from the CLI, proceed as follows:

  1. Generate SSH host keys for the SSH server

    router{}ssh host-key all
    
  2. Create a new configuration init_turbo:

    router{}new conf init_turbo
    router{init_turbo}
    
  3. Enable DHCP on interface eth0:

    router{init_turbo}eth0
    router{init_turbo-eth0}ipaddress dhcpv4
    router{init_turbo-eth0-dhcpv4}dhcp enable
    
  4. Enable SSH server

    router{init_turbo-eth0-dhcpv4}gen
    router{init_turbo-gen}ssh enable
    
  5. Save the configuration

    router{init_turbo-gen}save
    router{}
    
  6. Apply the configuration

    router{}apply init_turbo
    NOTICE(0): Interface eth3 is not configured in XMS
    NOTICE(0): Interface eth2 is not configured in XMS
    NOTICE(0): Interface eth1 is not configured in XMS
    

    Now the equipement can be accessed via a remote SSH client at address 192.168.0.2.

  7. To make this configuration applied at each startup, make it the start configuration:

    router{}copy running start
    WARNING: Do you really want to overwrite the start configuration (y/n)? [n]: y