This shows you the differences between two versions of the page.
|
rl:labs:06:contents:09 [2025/11/09 15:54] 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 74: | Line 71: | ||
| Pentru informații legate de activarea rutării, consultați [[https://docs.frrouting.org/projects/dev-guide/en/latest/building-frr-for-debian13.html#enable-ip-ipv6-forwarding|această pagină]]. | Pentru informații legate de activarea rutării, consultați [[https://docs.frrouting.org/projects/dev-guide/en/latest/building-frr-for-debian13.html#enable-ip-ipv6-forwarding|această pagină]]. | ||
| </note> | </note> | ||
| + | |||
| + | <hidden> | ||
| + | <solution> | ||
| + | Pe host: | ||
| + | <code> | ||
| + | root@host:~# vim /etc/sysctl.d/frr.conf | ||
| + | net.ipv6.conf.all.forwarding=1 | ||
| + | |||
| + | root@host:~# systemctl restart systemd-sysctl | ||
| + | </code> | ||
| + | </solution> | ||
| + | </hidden> | ||
| Reporniți mașina virtuală (stația ''host''), folosind comanda:<code bash> | Reporniți mașina virtuală (stația ''host''), folosind comanda:<code bash> | ||
| 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. | ||