Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] iproute2 reference
Date: Sun, 10 Jun 2018 15:53:01
Message-Id: 2408196.iQaUmMYeGQ@dell_xps
In Reply to: Re: [gentoo-user] iproute2 reference by Andrew Udvare
1 On Sunday, 10 June 2018 16:22:18 BST Andrew Udvare wrote:
2 > > On 2018-06-10, at 09:15, Peter Humphrey <peter@××××××××××××.uk> wrote:
3 > >
4 > > Hello list,
5 > >
6 > > I'm trying to learn how to use the "ip" command to manage routing on one
7 > > of my boxes, which has two Ethernet interfaces.
8 >
9 > If you're using systemd, you can set it up with systemd.network in
10 > /etc/systemd/network. I do this on my router. However I was unable to get
11 > my IPv6 6rd tunnel working this way. For IPv4 DHCP or static it works fine.
12 >
13 > https://www.freedesktop.org/software/systemd/man/systemd.network.html
14 > https://wiki.archlinux.org/index.php/Systemd-networkd#Configuration_examples
15 > > Can anyone recommend suitable reading material? I don't mind paying for a
16 > > book, provided that it's reasonably up to date and won't bury me in a
17 > > morass of bit patterns, OSI transport layers and so on. Just the stuff
18 > > that a network admin would need.
19 >
20 > man ip (relatively minimal, but not as minimal as ip --help)
21 >
22 > https://www.cyberciti.biz/faq/linux-ip-command-examples-usage-syntax/ is in
23 > my bookmarks
24 >
25 > https://access.redhat.com/sites/default/files/attachments/rh_ip_command_chea
26 > tsheet_1214_jcs_print.pdf
27 >
28 > bash-completion comes with ip command support.
29 >
30 > My script to set up my IPv6 6rd tunnel on my router:
31 >
32 > ip tunnel del sit-6rd
33 > ip tunnel add sit-6rd mode sit local "$IPV4_ADDR" ttl 64 dev enp1s0f0
34 > ip tunnel 6rd dev sit-6rd 6rd-prefix 2602::/24
35 >
36 > ip link set sit-6rd mtu 1480
37 > ip link set sit-6rd up
38 >
39 > ip -6 addr add "$IPV6_ADDR" dev sit-6rd
40 > ip -6 route add 2000::/3 via "::$IPV4_BR_ADDR"
41 > ip -6 route add default via "::$IPV4_BR_ADDR"
42 >
43 > Andrew
44
45 To thumb through the man pages you need to extend man ip with the OBJECT.
46 Same applies with --help pages.
47
48 For example, to read the help page of 'ip address':
49
50 ip address help
51
52 the corresponding man page is:
53
54 man ip-address
55
56 --
57 Regards,
58 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] iproute2 reference Peter Humphrey <peter@××××××××××××.uk>