Configure IP Address in JunOS

Share This Article: Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0Pin on Pinterest0Email this to someone

Are you new to Juniper Networks? If yes then I am sure you are having hard times configuring IP address in Juniper device’s interface. Today I will show you how to configure IP address in JunOS or Juniper devices. Before showing you the commands in configuring IP address lets begin with some basics.

Configure IP Address in JunOS

Well, there are different modes in JunOS like Cisco IOS. The modes are Operational Mode and Configuration Mode. You can configure IP address in JunOS operating system in Configuration mode only. In JunOS everything you configure for interface is logical. Unlike Cisco IOS, when you configure IP address in a JunOS interface then you are actually creating logical interface and configure IP address in that logical interface. The logical entity is called unit and is given a number starting with zero “0”. Most of the times you will configure IP address in logical unit 0.

Configure IP Address in JunOS

JunOS supports many protocols. IPv4 and IPv6 is the protocol (family) that you will be using most of the time. JunOS calls inet for IPv4 and inet6 for IPv6. So you have to mention the family inet or inet6 while configuring IP address in Juniper router’s interface.

Let’s see an example of how IP address is configured. We will configure IPv4 address on ge-0/0/0 interface.

[edit]
root@MustBeGeek# set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24

Here, IP address is assigned on logical interface ge-0/0/0.0 interface of IPv4 family. You can view this information by typing the following command,

root@MustBeGeek> show interfaces ge-0/0/0 brief

Now let’s see another example for configuring IPv6 address in ge-0/0/0 interface.

[edit]
root@MustBeGeek# set interfaces ge-0/0/0 unit 0 family inet6 address 2001:230:20:1:1/64

Here family inet6 is used to specify IPv6 address. To view the configuration you can use the show command.

root@MustBeGeek> show interfaces ge-0/0/0 detail (or brief)

This command will show you information about this interface in detail.

The following two tabs change content below.
Bipin is a freelance Network and System Engineer with expertise on Cisco, Juniper, Microsoft, VMware, and other technologies. You can hire him on UpWork . Follow Bipin Giri on Google+. Bipin enjoys writing articles and tutorials related to Network technologies. Some of his certifications are, MCSE:Messaging, JNCIP-SEC, JNCIS-ENT, and others.