---
# System prepended metadata

title: 9/13 Records of the lecture
tags: [DHCP, Smallko, winServer, wireshark, cisco, Networking]

---

# 9/13 Records of the lecture

###### tags: `Networking` `cisco` `wireshark` `winServer` `DHCP` `Smallko`

[TOC]



## Capture packets

### Setting configure file

The file default path:
![](https://i.imgur.com/T9yQJtu.png)

Modify the ps to cooperate with a Pnet-Lab Virtual machine password. 

In windows, we could use notepad command to call a note-editor and modify the file.

```WinC=
notepad <fileName>
```

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

### Topology 


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


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


Double click the .bat file to run it.


## Analysis the packet(Wireshark

192.168.1.10 -> 192.168.1.11
![](https://i.imgur.com/O3DMmzk.png)


## Adding the new machine to Pnet (winServer 2008)


Create a new folder and put the files in it

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

### upload file 

Use winscp

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


Put the folder in the path 

/opt/unetlab/addons/qemu

just like this 
![](https://i.imgur.com/4wZytMi.png)

Check Virtualize Intel

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




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


I couldn't start my winserver because if i check Virtualize INtel, Pnet won't start . 

And then, I have tried many time through google ,but you know XD(Fuckerrrrrrrrrrrrrrr

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



----

## Router Component 


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



**Storage**

ROM -> just like Compute BIOS

Flash -> OS Storage 
```
IF(BIOS start){
	RAM was loaded with Flah 
}
```

NVRAM (if we start device, NVRAM will automatically write into RAM 

So, we finished router configurations, having to write back to NVRAM. Otherwise, we setting files will be discarded when Pnet machine shuts down. 



---
## DHCP (Dynamic Host Configuration Protocol )


DHCP is the protocol of the application layer.

DHCP server: Automatically allocate IP.



### Configure Router 

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


Basically, if you want to look up the ip information, you must under the privilege mode. 

But try to this, add 'do' in front of the command

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

Oh, that's cool !!!

## Configure DHCP Router 

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

dhcp pool -> just like create a object XD 


We have finished DHCP server configuration 

## VPC setting 


Basic Commands 
```
clear ip 

ip dhcp 

show ip
```

## DORA
DORA is the process that follow some step between the serve and clients. it get the ip from centralized server. 

[Reference Document](https://www.geeksforgeeks.org/how-dora-works/)

It consist of four-steps 

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


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


## Self-Practice 

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



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

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

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

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


192.168.1.10 ping 192.168.1.100

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


**Capture packets form the Router e 0/0** 




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

**Capture packets form the Router e 0/1**

ARP (Address Resolve Protocol)


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

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

---

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

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


## Save Configuration 

Method 1 
wire running-configure into startUP-configure(ARM->NVRAM)
```
enable 

wire memory 
```
![](https://i.imgur.com/GjWQejD.png)

```
running-config
```
![](https://i.imgur.com/AVMGV83.png)


Method 2

## Errors Solution 


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

[solve way](https://jingyan.baidu.com/article/d621e8da27077c6964913f66.html)


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


And then, use Putty to connect previously.(it's important !!!!!! we have to make computer trust the Pnet machine )


## Remark 

software defined networking (業界)