-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix IPV6 forced-mgmt-route not work issue #17299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1527252
fde2d79
225cd34
6c7be0b
ae4905e
269269c
6d1554d
4bd7533
3a2adf2
ddc436c
ba1352c
dfc96df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,14 +34,14 @@ iface eth0 inet static | |
up ip -4 route add default via 10.0.0.1 dev eth0 table 5000 metric 201 | ||
up ip -4 route add 10.0.0.0/24 dev eth0 table 5000 | ||
up ip -4 rule add pref 32765 from 10.0.0.100/32 table 5000 | ||
up ip rule add pref 32764 to 11.11.11.11 table 5000 | ||
up ip rule add pref 32764 to 22.22.22.0/23 table 5000 | ||
up ip -4 rule add pref 32764 to 11.11.11.11 table 5000 | ||
up ip -4 rule add pref 32764 to 22.22.22.0/23 table 5000 | ||
# management port down rules | ||
pre-down ip -4 route delete default via 10.0.0.1 dev eth0 table 5000 | ||
pre-down ip -4 route delete 10.0.0.0/24 dev eth0 table 5000 | ||
pre-down ip -4 rule delete pref 32765 from 10.0.0.100/32 table 5000 | ||
pre-down ip rule delete pref 32764 to 11.11.11.11 table 5000 | ||
pre-down ip rule delete pref 32764 to 22.22.22.0/23 table 5000 | ||
pre-down ip -4 rule delete pref 32764 to 11.11.11.11 table 5000 | ||
pre-down ip -4 rule delete pref 32764 to 22.22.22.0/23 table 5000 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the title is about ipv6, but new test cases are all ipv4, am i missing something here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will add new test case for IPV6. For IPV4 address, following 2 commands are exactly same: But for IPV6 address, we always need add '-6' parameter: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed. |
||
iface eth0 inet6 static | ||
address 2603:10e2:0:2902::8 | ||
netmask 64 | ||
|
@@ -53,10 +53,12 @@ iface eth0 inet6 static | |
up ip -6 route add default via 2603:10e2:0:2902::1 dev eth0 table 5000 metric 201 | ||
up ip -6 route add 2603:10e2:0:2902::/64 dev eth0 table 5000 | ||
up ip -6 rule add pref 32765 from 2603:10e2:0:2902::8/128 table 5000 | ||
up ip -6 rule add pref 32764 to 33:33:33::0/64 table 5000 | ||
# management port down rules | ||
pre-down ip -6 route delete default via 2603:10e2:0:2902::1 dev eth0 table 5000 | ||
pre-down ip -6 route delete 2603:10e2:0:2902::/64 dev eth0 table 5000 | ||
pre-down ip -6 rule delete pref 32765 from 2603:10e2:0:2902::8/128 table 5000 | ||
pre-down ip -6 rule delete pref 32764 to 33:33:33::0/64 table 5000 | ||
# | ||
source /etc/network/interfaces.d/* | ||
# | ||
|
Uh oh!
There was an error while loading. Please reload this page.