---
# System prepended metadata

title: 9/6 Notes
tags: [topology, router, Networking, simulate]

---

# 9/6 Notes

[TOC]

## Run PnetLab machine on VMware  

[Reference doc](https://pnetlab.com/pages/download)


> Remind
Didn't check virtualization option

## Ishare

it could help you to manage network device image

[How to use](https://i-share.top/user/articles/view)


### show downloadable device images
```bash=
ishare search iol
```

### Install
```bash=
ishare pull L3-ADVENTERPRISEK9-M-15.2-S7.bin
```


## get Pnet ip

```bash=
ifconfig | more
```

![](https://i.imgur.com/VSqoBLY.png)


# Switch 


## Topology

![](https://i.imgur.com/GKQ2VLE.png)


class b 
Subnet:192.168
SubnetMask:255.255.0.0

>note: switch belong to layer 2 device (we couldn't configure one.



#### Host IP configuration 

Configure ip setting 

![](https://i.imgur.com/oi64hZB.png)


![](https://i.imgur.com/6qjZdLI.png)


![](https://i.imgur.com/tOJTY7V.png)

![](https://i.imgur.com/GTEZtEr.png)


### Host1 ping host 2
![](https://i.imgur.com/0qYMiJQ.png)

### Host1 ping host 3

![](https://i.imgur.com/rgqRmv5.png)

---


# Router

###### tags: `Networking` `router` `topology` `simulate`

## Basic command 

### Privileged exec mode
```bash=
enable 

#go back user mode
exit
disable 
```


### Global configure mode 
```bash=
configure terminal 

#go back user mode 
exit 
end 
```


## Configure virtual connection

set telnet or ssh 

in configure mode 
```bash=
line vyt 0~15
```


---

brief

show ip interface brief

brief (Brief summary of IP status and configuration


Configure Router

Display interface information

```
show ip interface brief
```
![](https://i.imgur.com/uyT9DrH.png)

Obviously, we haven't to set the router port  

Before we configure router interface, we have to enter the privilege mode


```
enable
```

Enter terminal


```
configure terminal
```


Set interfaces separately

```
# interface ethernet 0/0
# ip addr 192.168.69.1 255.255.255.128
# no shutdown
```
![](https://i.imgur.com/oKYoiRN.png)

OK now, we finished one.
and then, we have to configure another subnet.

```
exit  
```

```
# interface ethernet 0/1
# ip addr 192.168.69.129 255.255.255.128
# no shutdown
```


Now, we configure already 


testing

阿晟 ping appleWatch : success
阿晟 ping 筆電 : success


![](https://i.imgur.com/SodxHkr.png)




![](https://i.imgur.com/elqXcOV.png)





![](https://i.imgur.com/q9GEtJa.png)




![](https://i.imgur.com/RmpVWLL.png)

乾 不能保存 WTF !!! (the question has been solved. try use (write momory) )


Remark 

if we pad ? to part of the command, it will display remaining words

## 3 Equal route

![](https://i.imgur.com/hWbJ2QI.png)

### Topology
![](https://i.imgur.com/4CPIfdW.png)



### Import startup configure file

![](https://i.imgur.com/8PMT822.png)


### Specify the loopback ip 
r1
```
r1(config)#interface loopback 1
r1(config-if)#ip address 1.2.3.4 255.255.255.0

```

![](https://i.imgur.com/qtQkqNK.png)


r3

```
r3(config)#interface loopback 1
r3(config-if)#ip address 1.2.3.4 255.255.255.0

```

![](https://i.imgur.com/zATt9oi.png)


Vpc

```
VPCS> ip 192.1.1.2 255.255.255.0 192.1.1.1
```


### Using EIGRP configure routers

r1
```
r1(config)#router eigrp 100
r1(config-router)#no auto-summary
r1(config-router)#network 0.0.0.0
r1(config-router)#network 12.0.0.0
```

r2
```
r2(config)#router eigrp 100
r2(config-router)#no auto-summary
r2(config-router)#network 0.0.0.0
r2(config-router)#network 12.0.0.0
r2(config-router)#network 23.1.0.0
r2(config-router)#network 192.1.1.0
```

r3
```
r3(config)#router eigrp 100
r3(config-router)#no auto-summary
r3(config-router)#network 0.0.0.0
r3(config-router)#network 23.1.0.0
```

R2 route table
![](https://i.imgur.com/VrKy0B8.png)



## Equal routing setting 

### CEF == False
Default is True.
```
r1(config)#no ip cef
r2(config)#no ip cef
r3(config)#no ip cef
```


Ping 1.2.3.4
![](https://i.imgur.com/LOWHgS8.png)


R1 0/0
![](https://i.imgur.com/IVtqNl1.png)

R3 0/0
![](https://i.imgur.com/62grEwn.png)

## 4.Summary 
https://www.jannet.hk/enhanced-interior-gateway-routing-protocol-eigrp-zh-hant/
![](https://i.imgur.com/x3JJYIx.png)


172.16.12.1 
172.16.13.1
172.16.14.1
172.16.15.1


經過偶的計算 
用22去用因為 

15 = 000011 11
14 = 000011 10
13 = 000011 01
12 = 000011 00

sub mask = 255.255.252.0


Manual summary 


we could use the previous strapup file so that we can't need to set a similar configuration again.

```
r1(config)#interface loopback 1
r1(config-if)#ip address 172.16.12.1 255.255.255.0
exit
r1(config)#interface loopback 2
r1(config-if)#ip address 172.16.13.1 255.255.255.0
exit
r1(config)#interface loopback 3
r1(config-if)#ip address 172.16.14.1 255.255.255.0
exit
r1(config)#interface loopback 4
r1(config-if)#ip address 172.16.15.1 255.255.255.0
exit
```

R2
```
r2(config)#router eigrp 100
r2(config-router)#network 0.0.0.0
```
![](https://i.imgur.com/zd8viml.png)


Setting 

```
R1(config-if-range)#interface range e0/0
R1(config-if-range)#ip summary-address eigrp 10 172.16.12.0 255.255.252.0
```


