2.4.3. Day-1 configuration

Automatic Day-1 configuration

Virtual Service Router includes a Day-1 configuration mechanism that starts a DHCP client on the first interface and enables a SSH server on it, so that the user can remotely access the console.

  1. Check the VRF main state:

    vsr> show state vrf main
    vrf main
        (...)
        interface
            physical ens3
                oper-status UP
                ipv4
                    address 10.0.2.15/24
                    ..
            (...)
        ssh-server
            port 22
            enabled true
    

Here, we see that the ens3 interface in the main VRF is configured with an IP address and that SSH is enabled. You can jump to Configuring the fast path. If the automatic Day-1 configuration doesn’t match your needs, you can perform manual Day-1 configuration:

Manual Day-1 configuration with static IP address

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

  1. Start to edit the running configuration:

    vsr> edit running
    vsr running config#
    
  2. Create an interface named eth0 on top of the pci-b0s3 port, in the main vrf:

    vsr running config# vrf main interface physical eth0
    vsr running physical eth0#! port pci-b0s3
    vsr running physical eth0# commit
    

    Note

    use show state / network-port to see the list of available network ports with PCI ids; it can help choosing the right management port.

  3. Add an address to the management interface and apply the changes:

    vsr running physical eth0# ipv4 address 192.168.0.2/24
    vsr running physical eth0# commit
    
  4. Check that the system state for the new interface is correct:

    vsr running physical eth0# show state
    physical eth0
         oper-status UP
         enabled true
         mtu 1500
         ipv4
              address 192.168.0.2/24
              (...)
         port pci-b0s3
         (...)
    
  5. Add a default route:

    vsr running physical eth0# / vrf main routing static
    vsr running static# ipv4-route 0.0.0.0/0 next-hop 192.168.0.1
    vsr running static# commit
    
  6. Enable SSH server:

    vsr running static# / vrf main ssh-server
    vsr running ssh-server# commit
    vsr running ssh-server# exit
    

    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 startup configuration:

    vsr> copy running startup
    Overwrite startup configuration? [y/N] y
    

Manual Day-1 configuration with DHCP

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

  1. Start to edit the running configuration:

    vsr> edit running
    vsr running config#
    
  2. Create an interface named eth0 on top of the pci-b0s3 port, in the main vrf:

    vsr running config# vrf main interface physical eth0
    vsr running physical eth0#! port pci-b0s3
    vsr running physical eth0# commit
    

    Note

    use show state / network-port to see the list of available network ports with PCI ids; it can help choosing the right management port.

  3. Enable DHCP on the management interface and apply the changes:

    vsr running physical eth0# ipv4 dhcp
    vsr running dhcp# commit
    
  4. Check that the system state for the new interface is correct:

    vsr running physical eth0# show state
    physical eth0
        (...)
        ipv4
            dhcp
                dhcp-lease-time 7200
                enabled true
                current-lease
                    renew 3 2018/07/04 04:04:15
                    fixed-address 10.0.2.15
                    expire 3 2018/07/04 16:26:02
                    rebind 3 2018/07/04 13:26:02
                    (...)
            address 10.0.2.15/24
            (...)
        port pci-b0s3
        (...)
    
  5. Configure the DNS:

    vsr running physical eth0# / vrf main dns server 1.1.1.1
    vsr running physical eth0# commit
    
  6. Enable the SSH server:

    vsr running physical eth0# / vrf main ssh-server
    vsr running ssh-server# commit
    vsr running ssh-server# exit
    

    Now the equipement can be accessed via a remote SSH client using the address acquired by DHCP (in our case 10.0.2.15).

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

    vsr> copy running startup
    Overwrite startup configuration? [y/N] y