Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lab4
- R1
- ip link set dev eth1 up
- ip link set dev eth2 up
- ip addr add 10.0.1.1/24 dev eth0
- ip addr add 10.0.200.1/24 dev eth1
- ip addr add 192.168.0.1/24 dev eth2
- sysctl -w net.ipv4.ip_forward=1
- R2
- ip link set dev eth1 up
- ip link set dev eth2 up
- ip addr add 10.0.1.2/24 dev eth0
- ip addr add 10.0.30.1/24 dev eth1
- ip addr add 172.16.0.1/24 dev eth2
- sysctl -w net.ipv4.ip_forward=1
- R3
- ip link set dev eth1 up
- ip link set dev eth2 up
- ip addr add 10.0.200.2/24 dev eth0
- ip addr add 10.0.30.2/24 dev eth1
- ip addr add 192.168.100.1/24 dev eth2
- sysctl -w net.ipv4.ip_forward=1
- A1
- ip addr add 192.168.0.2/24 dev eth0
- ip route add default via 192.168.0.1
- B1
- ip addr add 172.16.0.2/24 dev eth0
- ip route add default via 172.16.0.1
- C1
- ip addr add 192.168.100.3/24 dev eth0
- ip route add default via 192.168.100.1
- R1:
- /etc/init.d/quagga start
- telnet localhost zebra
- sumienniewykonamtocwiczenie
- enable
- jestemskupionynacwiczeniu
- show ip route
- ALT + F2
- telnet localhost ospfd
- uczesienabledach
- enable
- rozumiemcorobie
- ALT + F3
- tcpdump -i eth1
- ALT + F2
- configure terminal
- router ospf
- redistribute connected
- network 192.168.0.0/24 area 0.0.0.0
- network 10.0.1.0/24 area 0.0.0.0
- network 10.0.200.0/24 area 0.0.0.0
- CTRL + Z
- write
- R2:
- /etc/init.d/quagga start
- telnet localhost zebra
- sumienniewykonamtocwiczenie
- enable
- jestemskupionynacwiczeniu
- show ip route
- ALT + F2
- telnet localhost ospfd
- uczesienabledach
- enable
- rozumiemcorobie
- ALT + F3
- tcpdump -i eth0
- ALT + F2
- configure terminal
- router ospf
- redistribute connected
- network 172.16.0.0/24 area 0.0.0.0
- network 10.0.1.0/24 area 0.0.0.0
- network 10.0.30.0/24 area 0.0.0.0
- CTRL + Z
- write
- R3:
- /etc/init.d/quagga start
- telnet localhost zebra
- sumienniewykonamtocwiczenie
- enable
- jestemskupionynacwiczeniu
- show ip route
- ALT + F2
- telnet localhost ospfd
- uczesienabledach
- enable
- rozumiemcorobie
- ALT + F3
- tcpdump -i eth1
- ALT + F2
- configure terminal
- router ospf
- redistribute connected
- network 192.168.100.0/24 area 0.0.0.0
- network 10.0.30.0/24 area 0.0.0.0
- network 10.0.200.0/24 area 0.0.0.0
- CTRL + Z
- write
- lab5
- R
- ifconfig eth2 up
- ifconfig eth3 up
- sysctl -w net.ipv4.ip_forward=1
- ip a add 192.168.56.102/24 dev eth3
- ip a add 192.168.0.1/24 dev eth2
- A
- ip a add 192.168.0.2/24 dev eth0
- ip route add default via 192.168.0.1
- W
- route add 192.168.0.0 mask 255.255.255.0 192.168.56.102
- Zmianę ip olać. Jesli trzeba będzie zmienić z linii komend:
- netsh int ip set address "VirtualBox Host-Only Network" static 192.168.56.101 255.255.255.0
- ipconfig /renew
- Zad8
- R: tcpdump -i eth2
- W: ping 192.168.0.2
- Zad9
- R: man tc
- Zad10
- R: tc qdisc add dev eth0 root netem delay 1000ms
- W: ping 192.168.0.2
- Zad11
- R: tcpdump -i eth2
- W: ping 192.168.0.2
- Zad12
- R: tc qdisc change dev eth0 root netem delay 0ms
- Zad13
- R: iperf -h
- Zad14
- A: iperf -s
- Zad15
- W: Odpalamy wireshark i podziwiamy
- Zad16
- W: odpalamy jperf, łączymy z 192.168.0.2
- Zad17
- R: tcpdump -i eth2
- odczytujemy win z przechwyconego segmentu tcp wysłanego przez A.
- Uwaga! Ta wartość nie koniecznie musi pokazywać ilości bajtów, które zmieszczą się jeszcze w buforze. Przy nawiązywaniu połączenia A wysyła do W segment (tak samo w drugą stronę) TCP z ustawionymi znacznikami SYN, ACK i w opcjach jest takie coś jak wscale, które oznacza przesunięcie. U mnie akurat wynosiło ono 2, więc jesli szerokośc okna ma 1400, to będzie to 1400*2^2=5600 bajtów
- Zad18
- SYN od W
- SYN, ACK od A
- ACK od W
- Zad19
- W: Wireshark->statistics->flow graph->tcp flow
- Zad20
- FIN, ACK od W
- ACK od A
- FIN, ACK od A
- ACK od W
- Zad21
- Zad22
- lab7
- Zad 0 - Konfiguracja wirtualkui
- Włączamy TYLKO jedna karte sieciowa w trybie bridged. dzieki temu nie musimy konfigurować sieci.
- ZAd 2
- apt-get install wu-ftpd
- zad 3,4
- /etc/wu-ftpd
- /usr/share/doc/wu-ftpd
- zad 6
- dpkg-reconfigure wu-ftpd ;włączamy logowanie anonimowe reszta bez zmian
- ip addr show ; Sprawdzamy adres IP naszej wirtualki iłączymy się przez fileZilla. User:
- anonymous Pass: tomasz@bilski.pl
- zad 7
- mkdir /home/ftp/incoming
- chmod 0777 /home/ftp/incoming
- chown ftp:daemon /home/ftp/incoming
- nano /etc/wu-ftpd/ftpaccess
- zmieniamy w tych liniach "no" na "yes"
- # Some permissions for the anonymous FTP user.
- # All the following default to "yes" for everybody
- rename no anonymous # rename permission?
- delete no anonymous # delete permission?
- overwrite no anonymous # overwrite permission?
- chmod no anonymous # chmod permission?
- umask no anonymous # umask permission?
- i dopisujemy linię:
- upload /home/ftp /incoming yes ftp daemon 0777
- i zapisujemy plik/etc/init.d/wu-ftpd restart
- zad8 Odbieramy poprzednio nadane uprawnienia
- chmod no anonymous # chmod permission?
- umask no anonymous # umask permission?
- zad9
- adduser dupa
- zad 10
- update-rc.d -f wu-ftpd remove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement