Ticker

6/recent/ticker-posts

How to configure Juniper Switch interface to receive an IP address via DHCP - Basic Networking

Topology:



In this example, let's configure the interface xe-0/0/10 to receive an IP from the DHCP Server which is the Home Router in this case.

To add the Home Router to the topology, right click on the Lab page and select Network



Select the type Management(Cloud0)


Virtual Machine Network Adapter settings.



Switch Configurations
root@vqfx-re> configure 
root@vqfx-re# set interfaces xe-0/0/10 unit 0 family inet dhcp 

Verify whether an IP Address is received by the Interface.
root@vqfx-re> show interfaces xe-0/0/10.0 terse 
Interface         Admin Link Proto  Local            Remote
xe-0/0/10.0       up    up   inet   192.168.8.103/24

root@vqfx-re> show configuration interfaces xe-0/0/10.0 
family inet {
    dhcp;
}

Let's Ping and confirm the connectivity between the Switch and the Home Router. The IP address of the Home Router is 192.168.8.1
root@vqfx-re> ping 192.168.8.1 
PING 192.168.8.1 (192.168.8.1): 56 data bytes
64 bytes from 192.168.8.1: icmp_seq=0 ttl=64 time=147.354 ms
64 bytes from 192.168.8.1: icmp_seq=1 ttl=64 time=175.709 ms

Post a Comment

0 Comments