---
# System prepended metadata

title: Ad Hoc Lab 7 (Channel 1)

---

# Ad Hoc Lab 7 (Channel 1)



## How to find out your ipv6
You can find out your ipv6 through `ifconfig`.
![](https://i.imgur.com/pgQL7yU.jpg)



## Lab result capture
> ![](https://i.imgur.com/5NW5FCQ.png)



## How to block
You can block specific ip through `ip6tables  -t  filter  -A  INPUT  -s  xxxx::xxxx:xxxx:xxxx:xxxx -j  DROP`.
```
查看當下Rule指令> sudo ip6tables -L

清除所有Rule指令(慎用)> sudo ip6tables -F

Drop 42指令> sudo ip6tables -t filter -A INPUT -s fe80::f6f2:6dff:fe17:74ba -j DROP

Drop 43指令> sudo ip6tables -t filter -A INPUT -s  fe80::f6f2:6dff:fe17:107 -j DROP

Drop 44指令> sudo ip6tables -t filter -A INPUT -s fe80::62e3:27ff:fe17:5602 -j DROP

Drop 45指令> sudo ip6tables -t filter -A INPUT -s fe80::62e3:27ff:fe17:2102 -j DROP

Drop 46指令> sudo ip6tables -t filter -A INPUT -s  fe80::a00:27ff:fe74:55fe -j DROP

Drop 48指令> sudo ip6tables -t filter -A INPUT -s fe80::62e3:27ff:fe17:281a -j DROP
```

## Traceroute test

```
測試42路徑> traceroute 192.168.10.42

測試43路徑> traceroute 192.168.10.43

測試44路徑> traceroute 192.168.10.44

測試45路徑> traceroute 192.168.10.45

測試46路徑> traceroute 192.168.10.46

測試48路徑> traceroute 192.168.10.48
```



## ipv6 addr
```
(42) fe80::f6f2:6dff:fe17:74ba

(43) fe80::f6f2:6dff:fe17:107

(44) fe80::62e3:27ff:fe17:5602

(45) fe80::62e3:27ff:fe17:2102

(46) fe80::62e3:27ff:fe17:55fe

(48) fe80::62e3:27ff:fe17:281a
```
## ipv4 addr
```
42 traceroute 192.168.10.42

43 traceroute 192.168.10.43

44 traceroute 192.168.10.44

45 traceroute 192.168.10.45

46 traceroute 192.168.10.46

48 traceroute 192.168.10.48