This shows you the differences between two versions of the page.
|
rl:labs:06:contents:09 [2025/11/09 16:16] laura.ruse [09. [BONUS - 10p] Configurare persistentă] |
rl:labs:06:contents:09 [2025/11/09 16:40] (current) laura.ruse |
||
|---|---|---|---|
| Line 26: | Line 26: | ||
| <code> | <code> | ||
| root@host:~# vim /etc/network/interfaces | root@host:~# vim /etc/network/interfaces | ||
| - | ---- | ||
| auto veth-red | auto veth-red | ||
| iface veth-red inet6 static | iface veth-red inet6 static | ||
| Line 34: | Line 33: | ||
| iface veth-blue inet6 static | iface veth-blue inet6 static | ||
| address 2202::1/64 | address 2202::1/64 | ||
| - | --- | + | |
| root@host:~# ifdown veth-red | root@host:~# ifdown veth-red | ||
| root@host:~# ifup veth-red | root@host:~# ifup veth-red | ||
| Line 44: | Line 43: | ||
| <code> | <code> | ||
| root@red:~# vim /etc/network/interfaces | root@red:~# vim /etc/network/interfaces | ||
| - | --- | ||
| auto red-eth0 | auto red-eth0 | ||
| iface red-eth0 inet6 static | iface red-eth0 inet6 static | ||
| address 2201::2/64 | address 2201::2/64 | ||
| gateway 2201::1 | gateway 2201::1 | ||
| - | --- | + | |
| root@red:~# ifdown red-eth0 | root@red:~# ifdown red-eth0 | ||
| root@red:~# ifup red-eth0 | root@red:~# ifup red-eth0 | ||
| Line 57: | Line 55: | ||
| <code> | <code> | ||
| root@blue:~# vim /etc/network/interfaces | root@blue:~# vim /etc/network/interfaces | ||
| - | --- | ||
| auto blue-eth0 | auto blue-eth0 | ||
| iface blue-eth0 inet6 static | iface blue-eth0 inet6 static | ||
| address 2202::2/64 | address 2202::2/64 | ||
| gateway 2202::1 | gateway 2202::1 | ||
| - | --- | + | |
| root@blue:~# ifdown blue-eth0 | root@blue:~# ifdown blue-eth0 | ||
| root@blue:~# ifup blue-eth0 | root@blue:~# ifup blue-eth0 | ||
| Line 90: | Line 87: | ||
| root@host:~# reboot | root@host:~# reboot | ||
| </code> | </code> | ||
| - | După repornire ar trebui să aveți configurațiile activate și conectivitate completă la nivelul topologiei. | + | După repornire, e posibil să nu aveți adresele IPv6 pe stația host. Dați ''ifup'' pentru interfețele ''veth-red'', ''veth-blue'' și ''veth-green''. |
| + | |||
| + | Acum ar trebui să aveți configurațiile activate și conectivitate completă la nivelul topologiei. | ||