Default gateway config in FlexFabric 5700

14,146

Solution 1

I couldn't find this anywhere else so if hopefully this helps somebody

The command is:

ip route static 0.0.0.0 0.0.0.0 x.x.x.x (IP of default gateway)

Solution 2

Thanks for this, saved me some time. Ended up with this quick setup for basic telnet access (prior to setting up SSH, VLANs and all that responsible stuff ;-P

Assign an IPv4 address to the management Ethernet port:

  • {sysname} system-view
  • [Sysname] interface M-GigabitEthernet0/0/0
  • [Sysname-m-gigabitethernet0/0/0] ip address x.x.x.x 24
  • [Sysname-m-gigabitethernet0/0/0} quit
  • [Sysname] ip route-static 0.0.0.0 0.0.0.0 y.y.y.y

Note: Fundamentals Configuration Guide has incorrect commands:

  • [boot] interface m-eth0
  • [boot-m-eth0] ip gateway 192.168.2.2

Allow and configure Telnet:

  • system-view
  • [Sysname] telnet server enable
  • [sysname] aaa session-limit telnet 1
  • [Sysname] line class vty
  • [Sysname-line-class-vty] user-role network-admin
  • [Sysname-line-class-vty] authentication-mode password
  • [Sysname-line-class-vty] set authentication password simple zzz
  • [Sysname-line-class-vty] idle-timeout 30
  • [Sysname-line-class-vty] quit
  • [Sysname] save safely
Share:
14,146

Related videos on Youtube

poolski
Author by

poolski

Updated on November 27, 2022

Comments

  • poolski
    poolski over 1 year

    We've taken delivery of a brand new set of shiny FlexFabric 5700 10GbE switches. I've read through the config and setup guides provided by HP and they're great, except that they outright lie about configuring a default gateway for the management interface of the switch.

    Their recommendation is to use the following steps:

    system-view
    interface m-eth0 
    ip address 10.0.0.2 24
    ip gateway 10.0.0.1
    

    For starters, m-eth0 doesn't exist. So we replace that with the correct interface name: M-GigabitEthernet0/0/0

    We try that. Unfortunately, the ip command has no gateway section. It only has address and irdp.

    Has anyone run into this issue and if so, where can I find the default gateway settings for the management interface for these things?

  • poolski
    poolski almost 8 years
    Agreed - the official docs are a bit lacking in that department.