Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Construction of Juniper platform

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

First of all, when I learn Juniper, I really don't know anything. It's not that I don't understand TCP/IP, but that I can't configure the Juniper router at all. the reason can be said to come from two aspects: the simulator starts for too long, there is too little information on the Internet, and when I configure the Juniper router on Gns3, I can't connect directly, hitting people. Hehe, when you can configure IP and simple commands, you will find that you may fall in love with Juniprer configuration. Although the information, but to rely on their own to find the fun ah. There is no end to learning.

My learning environment is very simple, online, everything is difficult at the beginning.

As follows:.

1.-JUNOS 8.5R1.14 built 2007-12-08 07:38:33 UTC

Juniper@Olive > / / this is not bad, with WEB

2. Named Pipe Tcp Proxy / / used to connect to Console

3. CRT, PUTTY and other tools

These three will be OK.

1. Enter configuration mode:

Juniper@Olive > configure

Entering configuration mode

[edit]

Juniper@Olive#

two。 Configure Root authentication. If not, it cannot be saved. An error will be prompted. There is no password by default.

Juniper@Olive# show

# # Last changed: 2013-08-03 20:05:06 UTC

Version 8.5R1.14

System {

Host-name Olive

Domain-name juniper.net

Root-authentication {

Encrypted-password "$1$ jB.4.GyM$kqpfLVpZl0uize9.jqvqn/"; # # SECRET-DATA

}

Login {

User juniper {

Uid 2000

Class super-user

Authentication {

Encrypted-password "$1$ K.TItDUy$TS/O.oZvKw9v0j1hTTz8k1"; # # SECRET-DATA

There are two users here, one is the root user and the other is the superuser. The nature between the two is the same. You can also create other users with different permissions.

For example:

Juniper@Olive# set system login user test class?

Possible completions:

Login class

Operator permissions [clear network reset trace view]

Read-only permissions [view]

Super-user permissions [all]

Unauthorized permissions [none]

There are the above, there are different access operations for different users, and different users can choose different authentication methods, which will not be explained here.

3. Configure the interface IP address:

It is relatively simple to configure the interface IP address. Of course, it is more complicated than Cisco and Huawei. Of course, it depends on your preferences.

Set interface em0 unit 0 family inet address 192.168.1.1/24

/ / unit is equivalent to logical subinterface

Ser interface em0 unit 0 vlan-id 12

That is, the subinterface: em0.12 is delimited in 12

Use the command: show interface terse can view the corresponding interface

Juniper@Olive > monitor traffic interface

This command can view the size and number of packets passed on the corresponding interface.

Juniper@Olive# set interfaces lo0 unit 0 family inet address

4. Due to the limited equipment, our headset can not afford it, so we can only enable the logical router. The Juniper router can create 15 virtual routers plus 16 outside.

Here there are only em0--em1--em2---em3--em4, five interfaces, EM0 belongs to the outside router, 1 Murray 4 can be divided into the corresponding virtual router, that is, four, if again

Create 5, 6, 7, I found that 5, 6, 7 they can not communicate with each other, I do not know if the others are the same, but 0Murray 4 can communicate with each other.

Juniper@Olive# edit logical-routers r1

If you need to configure something in R1, it will be 0K in the configuration mode of R1.

Juniper@Olive# show

Interfaces {

Em1 {

Unit 12 {

Vlan-id 12

Family inet {

Address 10.1.12.1/24

}

}

}

}

Routing-options {

Static {

Route 0.0.0.0/0 {

Next-hop 10.1.12.2

Metric 1

}

}

}

[edit logical-routers r1]

This is the configuration in R1

Juniper@Olive# run ping 10.1.12.1 lgo

^

Syntax error.

Juniper@Olive# run ping 10.1.12.1 logical-router r1

PING 10.1.12.1 (10.1.12.1): 56 data bytes

64 bytes from 10.1.12.1: icmp_seq=0 ttl=64 time=4.976 ms

64 bytes from 10.1.12.1: icmp_seq=1 ttl=64 time=0.216 ms

64 bytes from 10.1.12.1: icmp_seq=2 ttl=64 time=0.077 ms

^ C

-10.1.12.1 ping statistics-

3 packets transmitted, 3 packets received, 0 packet loss

Round-trip min/avg/max/stddev = 0.077max 1.756 ms 4.976 max 2.277

This must be done to Ping R2 from R1

5. Configure static route information:

Routing-options {

Static {

Route 0.0.0.0/0 {

Next-hop 10.1.12.2

Metric 1

This is a good example, so I won't say much about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report