
In this article we are going to talk about ip address assignment to a Ray switch.
We have to options of assigning an ip address for network management to a Ray switch.
- Manual static ip address assignment
- Dynamic (DHCP) ip address assignment.
By default, a brand new network switch regardless of the manufacturer will always have VLAN 1 as the default vlan and the default VLAN 1 interface (L3) will require an ip address to be assigned to it in order for the switch to be accessible on the network through that ip address.
For some people who understand VLANs as a Layer 2 protocol and stick to the fundamentals that layer 2 is strictly MAC addresses, There are some few execptions especially why you talk about VLAN interfaces.
The switch physical ports can belong to a specific vlan and the VLANs are a layer 2 protocol, However some Layer 3 IP addressing are introduced into the picture when you want to manage a specific VLAN or switch by creating a VLAN interface and assigning it an ip address.
The best example of this is for a flat network in a brand new network, in order for you to manage the switch, you need to assign an ip address to the default VLAN 1.
steps for configuring and assigning VLAN 1(Default VLAN 1 ) an ip address.
summary of static vlan interface ip address:
RSL2-24P#
RSL2-24P# configure terminal
RSL2-24P(config)#
RSL2-24P(config)# Interface vlan 1
RSL2-24P(config-int)#ip address 192.168.20.254 255.255.255.0
RSL2-24P(config-int)#no shutdown
RSL2-24P(config-int)#end
RSL2-24P#
RSL2-24P#copy running-config startup-config
RSL2-24P#
the above commands are what is needed to assign static ip address to switch
Summary of dhcp vlan interface ip address:
RSL2-24P#
RSL2-24P#configure terminal
RSL2-24P(config)#interface vlan 1
RSL2-24P(config-int)#ip dhcp-client enable
RSL2-24P(config-int)#end
RSL2-24P#
RSL2-24P# copy running-config startup-config
RSL2-24P#
we have summarized the required steps to configure static and dynamic ip addressing
thanks!