Dynamic host configuration protocol – Juniper Networks EX2500 User Manual

Page 18

Advertising
background image

EX2500 Ethernet Switch Configuration Guide

4

„

Dynamic Host Configuration Protocol

3.

Configure the management IP address, subnet mask, and default gateway.

ex2500(config)# interface ip-mgmt address 10.10.10.2
ex2500(config)# interface ip-mgmt netmask 255.255.255.0
ex2500(config)# interface ip-mgmt enable
ex2500(config)# interface ip-mgmt gateway 10.10.10.1
ex2500(config)# interface ip-mgmt gateway enable
ex2500(config)# exit

Once you configure the IP address for your switch, you can connect to the
management port and use the Telnet program from an external management
station to access and control the switch. The management port provides
out-of-band management.

You also can configure in-band management through any of the switch data ports.
To allow in-band management, use the following procedure:

1.

Log on to the switch.

2.

Enter IP interface mode.

ex2500> enable
ex2500# configure terminal
ex2500(config)# interface ip 1

3.

Configure the management IP interface, subnet mask, and VLAN assignment.
Enable the interface.

ex2500(config-ip-if)# ip address 10.10.10.2
ex2500(config-ip-if)# ip netmask 255.255.255.0
ex2500(config-ip-if)# ipvlan 1
ex2500(config-ip-if)# enable

4.

Configure the default gateway. Enable the gateway.

ex2500(config-ip-if)# ip gateway address 10.10.10.1
ex2500(config-ip-if)# ip gateway enable
ex2500(config-ip-if)# exit

Once you configure the IP address and you have an existing network connection,
you can use the Telnet program from an external management station to access
and control the switch. Once the default gateway is enabled, the management
station and your switch do not need to be on the same IP subnet.

Dynamic Host Configuration Protocol

Dynamic Host Configuration Protocol (DHCP) is a transport protocol that provides a
framework for automatically assigning IP addresses and configuration information
to other IP hosts or clients in a large TCP/IP network. Without DHCP, the IP address
must be entered manually for each network device. DHCP allows a network
administrator to distribute IP addresses from a central point and automatically send
a new IP address when a device is connected to a different place in the network.

Advertising