In T421#63999, @Azayaka wrote:In T421#63962, @jack9603301 wrote:@c-po What did you want? Configuration of DHCPv6 PD in vyos?? Didn't you update the document? How do you configure it?? I don't quite understand!
Please...This is just embarrassing. This comment might be off-topic, but it looks like our fellow Chinese user @jack9603301 need suggestions on how to use English in a proper manner. (Your current wording style can easily offend people.)
Here are my wording suggestions.
- Avoid double or tripple question marks.
- Avoid rhetorical questions.
- Use "Sorry", "Please", "Could you...", etc. for questions and requests.
- Avoid representing others if you are not entitled. For example, when *you* want some features, do not say "VyOS fans in China" want those features.
I can translated my points to Chinese if it can be better understood.
雖然你可能沒有意識到,但是你的英語行文很不禮貌,容易冒犯他人。以下是我的幾點建議:
- 避免使用多個問號。
- 避免反問他人。在中文語境下,反問也可以被認為是想吵架。
- 多用 "Sorry", "Please", "Could you..." 這種緩和語氣、表示禮貌的詞彙,特別是在提問或請求他人的時候。
- 不要輕易“代表”他人。
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed Search
May 18 2020
May 18 2020
My take at the client config following the config I had:
I had made a custom image with wide-dhcpv6-client a week ago or so, this is the client config I was running for NA and PD, WAN is eth0 and gets assigned the NA address with the prefix assigned to eth1 with the address <prefix/sla-id>::1 (if ifid is not set it will assign EUI-64 address). The lifetime value was pulled from an example config and I left it as-is while testing.
In T421#63962, @jack9603301 wrote:@c-po What did you want? Configuration of DHCPv6 PD in vyos?? Didn't you update the document? How do you configure it?? I don't quite understand!
@jack9603301 looking for a „service dhcpv6-server“ configuration which hands out the prefixes via ethernet so I can implement the client side.
@runar just created this as I can not create a dev env without a phabricator entry. answer in 20 minutes :-)
What repository, and what errors? :)
I found abnormal behavior during label allocation. As I wrote above VyOS generate label for all prefixes presented in routing table. But when we have for example 5 connected routes (four /24 and one /32) on Egress LSR and we start mpls VyOS allocates labels for all routes and neighbor (downstream LSR) receives label=3 (implicit null). But if we have 2 connected routes (one /24 and one /32) then we start mpls, Egress LSR allocates labels for all routes (two in this case), but if we add on Egress LSR one, two or more new connected routes VyOS does not allocate label=3 for this routes and does not send Label Mapping Message to its neighbors for FECs related to new added routes. The software version is 1.3-rolling-202005160117
@c-po What did you want? Configuration of DHCPv6 PD in vyos?? Didn't you update the document? How do you configure it?? I don't quite understand!
I know that this does not cover all use cases but it is a PoC working for some users (not all of course). Next step would be adding this to ethernet based interfaces.
Great, dhcpv6-pd is finally coming true!
Hi, first of all, it's great that at least someone created the first work to add PD support. But for me this first commit is not usable, as my ISP provides internet via a plain ethernet interface. Moreover, I'm using VLANs on my internal network. So, best case, I will connect vyos directly to the modem on an ethernet interface, but my ISP does not use pppoe at all.
Documentationnupdated here https://docs.vyos.io/en/latest/interfaces/pppoe.html#ipv6
In T421#63882, @Azayaka wrote:
May 17 2020
May 17 2020
The run code could check the command name against a list of known "need sudo" commands and prepend it automagically so the command looks like normal but is auto-sudo'ed
Enjoy testing
From the Git commit:
set service pppoe-server authentication local-users username test password 'test' set service pppoe-server authentication mode 'local' set service pppoe-server client-ip-pool start '192.168.0.1' set service pppoe-server client-ip-pool stop '192.168.0.10' set service pppoe-server client-ipv6-pool delegate '2001:db8:8003::/48' delegation-prefix '56' set service pppoe-server client-ipv6-pool prefix '2001:db8:8002::/48' mask '64' set service pppoe-server name-server '8.8.8.8' set service pppoe-server name-server '2001:4860:4860::8888' set service pppoe-server interface 'eth1' set service pppoe-server local-ip '10.100.100.1'
After a new reboot, the DHCP nameservers were correctly added to resolv.conf and powerdns recursor.conf. I had system name-server and service dns forwarding name-server set to a static IP. But after deleting these two static nameserver nodes, the DHCP nameservers are missing from both resolv.conf and recursor.conf.
Hi, everyone.
As I understood from my lab VyOS generate label in cisco fashion (for all presented prefixes in routing table). And it is good as for me. But I think it is necessary to be able to filter the FEC for which labels will be generated (for example only for /32 routes, or only for particular routes).
May 16 2020
May 16 2020
@Azayaka If I'm correct, the EdgeOs can perfectly do multiple PD at the same time (at least request the prefixes), even on one interface.
In T421#63876, @Azayaka wrote:Damn, I am so embarrassed by @jack9603301. From the avatar to the naive, rude comments... looks like a troll XD.
Another problem of the EdgeRouter-style configuration is that only one PD is possible at a time. Cisco IOS uses the concept of dhcp pool and pd name-tag to deal with multiple PDs (a possible scenario: 2 PDs from 2 different ISPs for redundancy). Not sure if it can be supported by dhclient though.
I prefer the IOS style, and here is an example.
ipv6 dhcp pool POOL-v6 dns-server 2001:4860:4860::8888 interface GigabitEthernet0/0/0 ipv6 address autoconfig default ipv6 enable ipv6 nd ra suppress all ipv6 dhcp client pd ISP-name ipv6 virtual-reassembly in interface Vlan1 ipv6 enable ipv6 address ISP-name ::1/64 ipv6 nd other-config-flag ipv6 nd ra interval 180 ipv6 dhcp server POOL-v6 rapid-commit
Damn, I am so embarrassed by @jack9603301. From the avatar to the naive, rude comments... looks like a troll XD.
After 2 release dhcp interface eth1 and one renew dhcp interface eth1, I now have 2 dhclients running, so there is a bug in the op-mode release/renew code.
4079 ? Ss 0:00 /sbin/dhclient -4 -nw -cf /var/lib/dhcp/dhclient_eth1.conf -pf /var/lib/dhcp/dhclient_eth1.pid -lf /var/lib/dhcp/dhclient_eth1.leases eth1 4305 ? Ss 0:00 /sbin/dhclient -q -nw -cf /var/lib/dhcp/dhclient_eth1.conf -pf /var/lib/dhcp/dhclient_eth1.pid -lf /var/lib/dhcp/dhclient_eth1.leases eth1
Passing passwords via command line arguments is very bad practice. Curl has a -u option, if passed just the user it prompts for the password on stdin. This can simply be passed via shell redirection.
@dmbaturin Maybe just anything that contains systemctl? Surely 100% of those will need it. But that also assumes anything called via /usr/lib/python3/dist-packages/vyos/util.py
Sometimes I wonder if we should just silently wrap every op mode command in sudo, at least those in the families other than show. It's hard to name a command that doesn't need sudo, and everyone (myself included!) has forgotten to add it at least once.
kroy changed the status of T2467: Restarting flow accounting fails with systemd error from Open to Needs testing.
PR510 should add the necessary sudo
jestabro changed the status of T2466: live-build encounters apt dependency problem when building with local packages from Open to In progress.
May 15 2020
May 15 2020
jjakob added a parent task for T103: DHCP server prepends shared network name to hostnames: T2464: DNS bugs (parent task).
jjakob added a parent task for T659: Static DHCP mappings aren't available on DNS: T2464: DNS bugs (parent task).
jjakob added a parent task for T1286: DHCP hostfile-update isn't removing hostfile entries on expiry.: T2464: DNS bugs (parent task).
jjakob added a parent task for T1751: DNS server addresses from DHCPv6 are not added to resolv.conf: T2464: DNS bugs (parent task).
jjakob added a parent task for T1715: System DNS Server Order Incorrect: T2464: DNS bugs (parent task).
jjakob added a parent task for T2279: Router resolves as 127.0.1.1 when using Router's Recursive DNS: T2464: DNS bugs (parent task).
jjakob added a parent task for T2463: DHCP-received nameserver not added to vyos-hostsd: T2464: DNS bugs (parent task).
jjakob added subtasks for T2464: DNS bugs (parent task): T2463: DHCP-received nameserver not added to vyos-hostsd, T2279: Router resolves as 127.0.1.1 when using Router's Recursive DNS, T2054: Changing "system name-server" doesn't update dns forwarding config, neither does "restart dns forwarding", T1715: System DNS Server Order Incorrect, T1751: DNS server addresses from DHCPv6 are not added to resolv.conf, T659: Static DHCP mappings aren't available on DNS, T103: DHCP server prepends shared network name to hostnames, T1286: DHCP hostfile-update isn't removing hostfile entries on expiry..
jjakob added a parent task for T2462: LLDP op-mode exception: IndexError: list index out of range: T2322: CLI [op-mode] bugs. Root task.
jjakob triaged T2462: LLDP op-mode exception: IndexError: list index out of range as Normal priority.
May 14 2020
May 14 2020
c-po renamed T2459: Migrate vyatta-show-nat-rules.pl to Python from Migrate to Migrate vyatta-show-nat-rules.pl to Python.
May 13 2020
May 13 2020
Unknown Object (User) changed the status of T2443: NHRP: Add debugging information to syslog from Resolved to Unknown Status.
Unknown Object (User) added a project to T2443: NHRP: Add debugging information to syslog: Ready for Crux (1.2.x).
Unknown Object (User) changed the status of T2456: netflow source-ip cannot be configured from In progress to Needs testing.
Unknown Object (User) changed the status of T2456: netflow source-ip cannot be configured from Confirmed to In progress.
Maybe you need pppoe option +ipv6 ipv6cp-use-ipaddr?
https://askubuntu.com/questions/56890/ipv6-over-pppoe
I don't use IPv6 over PPPoE so I don't know much more unfortunately.
Edit: if I understand that option correctly, it tells pppd to assign the address itself, so you don't need (must not use) ipv6 address autoconf in that case. It all depends on how your ISP implements IPv6 - autoconf is for SLAAC only.
jack9603301 lowered the priority of T2380: After PPPoE 0 is restarted, the default static route is lost from High to Normal.
@c-po I suspect that the problem has been found, but after I executed the restart PPPoE command, the default travel was lost. My configuration name wrote the following static route:
jack9603301 renamed T2380: After PPPoE 0 is restarted, the default static route is lost from After setting PPPoE to obtain IPv6 from ISP, you must restart the system to take effect to After PPPoE 0 is restarted, the default static route is lost.
One of the functions in Section (python/vyos/ifconfig/section.py) should provide a replacement
Viacheslav added a parent task for T2455: No support for the IPv6 VTI: T2353: Interface [conf_mode] errors parent task.
Viacheslav added a subtask for T2353: Interface [conf_mode] errors parent task: T2455: No support for the IPv6 VTI.
There are still some problems about IPv6, even when I restart it, I can't get IPv6 immediately. I don't know when it has some impact on my ISP environment, but it may be a bug that is hard to find. In a previous version of 1.2, IPv6 was acquired normally. Is it necessary for the official to cross compare with the latest version of 1.2.3? (may be 1.2.3, I hope I remember correctly)
How does vyos timeout PPPoE?
Successfully tested on the VyOS 1.3-rolling-202005130117.
Full opennhrp logs might be enabled by the following command
Unknown Object (User) closed T832: `show monitoring protocols bgp` doesn't work with frr as Unknown Status.
jjakob added a comment to T2453: Improve serial console (add options to auto-detect or hard-set terminal size).
I think this would be even better: https://github.com/lime45/serial/blob/master/resize.c (it's a stripped down resize.c), I haven't tested it yet though. I'm not sure where it would be best to put it, as it's a separate compiled program. Other such programs have their own repositories (vyos-utils), maybe 'vyos-xterm-resize' would be best.
I'm busy with work projects until at least next week so VyOS is on the backburner, when I get more time I'd like to rewrite the old console setup code.
thomas-mangin added a comment to T2453: Improve serial console (add options to auto-detect or hard-set terminal size).
https://github.com/joejulian/xterm/blob/master/resize.c Not complicated to port in the vyos library, replacing the current code and therefore only run when required
jjakob added a comment to T2453: Improve serial console (add options to auto-detect or hard-set terminal size).
Note however, that of the 2 mentioned shell script methods to poll the terminal emulator for its size, the first one (res()) didn't work for me (using GNU screen as the terminal, it returned an error after timeout), the 2nd one (res2()) worked (which is the one using xterm's special escape code). Both suffer from the same 0.5s delay, so the best would be to use xterm-resize, which is almost immediate.
jjakob added a comment to T2453: Improve serial console (add options to auto-detect or hard-set terminal size).
There is no way to send a SIGWINCH over serial - see https://unix.stackexchange.com/a/19265
We can, however, poll the terminal for its size - at login and on every command exit (bash trap DEBUG)
As a workaround you can set it to a non-0 value to make the interface work. Obviously it changes the configuration so it doesn't fix the issue.