Management IP
IP-based management requires that an L3 interface is established on a VLAN.
The IP address can be assigned to the switch using static configuration or DHCP.
The following examples use the default VLAN (1) for management.
1. Static Configuration
The L3 interface is created on a VLAN as shown below.
IPATCH request message:
- ? "/ietf-interfaces:interfaces/interface"
: name: L3V1
type: iana-if-type:l3ipvlan
The IP address 1.2.3.4 is assigned statically as shown below.
IPATCH request message:
- ? "/ietf-interfaces:interfaces/interface[name='L3V1']/ietf-ip:ipv4/address"
: ip: 1.2.3.4
2. DHCP
Instead of a static IP address, the DHCP client can be enabled as shown below.
IPATCH request message:
- ? "/ietf-interfaces:interfaces/interface[name='L3V1']/\
mchp-velocitysp-dhcp:dhcp/client/config/enabled"
: true
The status of the DHCP client is retrieved as shown below.
FETCH request message:
- "/ietf-interfaces:interfaces/interface[name='L3V1']/\
mchp-velocitysp-dhcp:dhcp/client/status"
FETCH response message:
- ? "/ietf-interfaces:interfaces/interface/mchp-velocitysp-dhcp:dhcp/client/\
status"
: state: SELECTING
server-ip: 0.0.0.0
3. IP Status
In the examples below, an external host 1.1.1.1 has communicated with the switch.
The host has sent an ARP request followed by an ICMP echo request.
The ARP table for the interface now contains an entry for the host.
FETCH request message:
- "/ietf-interfaces:interfaces/interface[name='L3V1']/ietf-ip:ipv4/neighbor"
FETCH response message:
- ? "/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/neighbor"
: - ip: 1.1.1.1
link-layer-address: 00-00-00-00-01-00
The IP counters for the interface are retrieved as shown below.
FETCH request message:
- "/ietf-interfaces:interfaces/interface[name='L3V1']/ietf-ip:ipv4/\
mchp-velocitysp-ip:statistics"
FETCH response message:
- ? "/ietf-interfaces:interfaces/interface/ietf-ip:ipv4/\
mchp-velocitysp-ip:statistics"
: rx-total: '1'
rx-octets: '46'
rx-hdr-errors: '0'
rx-addr-errors: '0'
rx-forwards: '0'
rx-no-routes: '0'
rx-unknown-protos: '0'
rx-delivers: '1'
tx-requests: '1'
tx-forwards: '0'
tx-total: '1'
tx-octets: '46'