# 9/13 Records of the lecture
###### tags: `Networking` `cisco` `wireshark` `winServer` `DHCP` `Smallko`
[TOC]
## Capture packets
### Setting configure file
The file default path:

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>
```

### Topology


Double click the .bat file to run it.
## Analysis the packet(Wireshark
192.168.1.10 -> 192.168.1.11

## Adding the new machine to Pnet (winServer 2008)
Create a new folder and put the files in it

### upload file
Use winscp

Put the folder in the path
/opt/unetlab/addons/qemu
just like this

Check Virtualize Intel


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

----
## Router Component

**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

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

Oh, that's cool !!!
## Configure DHCP Router

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


## Self-Practice





192.168.1.10 ping 192.168.1.100

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

**Capture packets form the Router e 0/1**
ARP (Address Resolve Protocol)


---


## Save Configuration
Method 1
wire running-configure into startUP-configure(ARM->NVRAM)
```
enable
wire memory
```

```
running-config
```

Method 2
## Errors Solution

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

And then, use Putty to connect previously.(it's important !!!!!! we have to make computer trust the Pnet machine )
## Remark
software defined networking (業界)