routeros(ros) 配置ipv6 版本chr7.11.2(x86_64)

本文介绍了在ROS(RobotOperatingSystem)环境下,通过PPPoE拨号和光猫桥接,配置Windows客户端获取IPv6地址的方法,包括使用DHCPv6分配IPv6前缀,设置自定义地址池,以及配置IPv6-ND和默认路由的过程。

1.环境

ros 版本chr 7.11.2,ppoe拨号,光猫桥接,北京联通,开启ipv6,需要ppoe 断开重拨一次,操作前请注意

2.主要原理

dhcp ipv6 客户端 获取运营商分配的ipv6,引入创建的地址池,新建dhcp server 引用该池ipv6前缀 给局域网下面的客户端进行分配,可获得ipv6 公网地址

3.操作步骤

打开winbox,选择ipv6-dhcp client

选择ppoe 接口  Request 选择 prefix   pool name 为【自定义】,use peer dns 可以勾选,也可以在 ip - dns 手动添加

创建完成后,status 正确显示为 bound,如果为 searching ,在 interface 关闭 ppoe 重新打开

ipv6 - addresses  准备创建局域网网口地址 相当于lan ,我这边有多个vlan,选择vlan10 接口

点击+ 进行添加

from pool 选择之前自定义的地址池  interface 选择 局域网接口 eui64 我这里是勾选的,我这边不勾选会报错

创建完成后可以看到地址已经获取

下面创建dhcp server

名字自定义,地址池选择之前创建的,接口选择局域网下面的

打开ipv6-ND

默认是全部,先关闭

新建接口,选择要ND的局域网接口

特别注意的是 Prefixes 选项 应该是正常的,而不是红色报错

最后添加默认路由

windows客户端网口 开启ipv6 

进行ipv6 测试

至此ipv6 初步配置成功

解释这些参数含义:net.ipv4.conf.veth.accept_local net.ipv4.conf.veth.accept_redirects net.ipv4.conf.veth.accept_source_route net.ipv4.conf.veth.arp_accept net.ipv4.conf.veth.arp_announce net.ipv4.conf.veth.arp_filter net.ipv4.conf.veth.arp_ignore net.ipv4.conf.veth.arp_notify net.ipv4.conf.veth.bc_forwarding net.ipv4.conf.veth.bootp_relay net.ipv4.conf.veth.disable_policy net.ipv4.conf.veth.disable_xfrm net.ipv4.conf.veth.drop_gratuitous_arp net.ipv4.conf.veth.drop_unicast_in_l2_multicast net.ipv4.conf.veth.force_igmp_version net.ipv4.conf.veth.forwarding net.ipv4.conf.veth.igmpv2_unsolicited_report_interval net.ipv4.conf.veth.igmpv3_unsolicited_report_interval net.ipv4.conf.veth.ignore_routes_with_linkdown net.ipv4.conf.veth.log_martians net.ipv4.conf.veth.mc_forwarding net.ipv4.conf.veth.medium_id net.ipv4.conf.veth.promote_secondaries net.ipv4.conf.veth.proxy_arp net.ipv4.conf.veth.proxy_arp_pvlan net.ipv4.conf.veth.route_localnet net.ipv4.conf.veth.rp_filter net.ipv4.conf.veth.secure_redirects net.ipv4.conf.veth.send_redirects net.ipv4.conf.veth.shared_media net.ipv4.conf.veth.src_valid_mark net.ipv4.conf.veth.tag net.ipv4.ip_local_reserved_ports net.ipv4.neigh.veth.anycast_delay net.ipv4.neigh.veth.app_solicit net.ipv4.neigh.veth.base_reachable_time_ms net.ipv4.neigh.veth.delay_first_probe_time net.ipv4.neigh.veth.gc_stale_time net.ipv4.neigh.veth.locktime net.ipv4.neigh.veth.mcast_resolicit net.ipv4.neigh.veth.mcast_solicit net.ipv4.neigh.veth.proxy_delay net.ipv4.neigh.veth.proxy_qlen net.ipv4.neigh.veth.retrans_time_ms net.ipv4.neigh.veth.ucast_solicit net.ipv4.neigh.veth.unres_qlen net.ipv4.neigh.veth.unres_qlen_bytes net.ipv4.tcp_mem net.ipv4.udp_mem net.ipv6.conf.veth.accept_dad net.ipv6.conf.veth.accept_ra net.ipv6.conf.veth.accept_ra_defrtr net.ipv6.conf.veth.accept_ra_from_local net.ipv6.conf.veth.accept_ra_min_hop_limit net.ipv6.conf.veth.accept_ra_mtu net.ipv6.conf.veth.accept_ra_pinfo net.ipv6.conf.veth.accept_ra_rt_info_max_plen net.ipv6.conf.veth.accept_ra_rt_info_min_plen net.ipv6.conf.veth.accept_ra_rtr_pref net.ipv6.conf.veth.accept_redirects net.ipv6.conf.veth.accept_source_route net.ipv6.conf.veth.addr_gen_mode net.ipv6.conf.veth.autoconf net.ipv6.conf.veth.dad_transmits net.ipv6.conf.veth.disable_ipv6 net.ipv6.conf.veth.disable_policy net.ipv6.conf.veth.drop_unicast_in_l2_multicast net.ipv6.conf.veth.drop_unsolicited_na net.ipv6.conf.veth.enhanced_dad net.ipv6.conf.veth.force_mld_version net.ipv6.conf.veth.force_tllao net.ipv6.conf.veth.forwarding net.ipv6.conf.veth.hop_limit net.ipv6.conf.veth.ignore_routes_with_linkdown net.ipv6.conf.veth.keep_addr_on_down net.ipv6.conf.veth.max_addresses net.ipv6.conf.veth.max_desync_factor net.ipv6.conf.veth.mc_forwarding net.ipv6.conf.veth.mldv1_unsolicited_report_interval net.ipv6.conf.veth.mldv2_unsolicited_report_interval net.ipv6.conf.veth.mtu net.ipv6.conf.veth.ndisc_notify net.ipv6.conf.veth.ndisc_tclass net.ipv6.conf.veth.optimistic_dad net.ipv6.conf.veth.proxy_ndp net.ipv6.conf.veth.regen_max_retry net.ipv6.conf.veth.router_probe_interval net.ipv6.conf.veth.router_solicitation_delay net.ipv6.conf.veth.router_solicitation_interval net.ipv6.conf.veth.router_solicitation_max_interval net.ipv6.conf.veth.router_solicitations net.ipv6.conf.veth.seg6_enabled net.ipv6.conf.veth.suppress_frag_ndisc net.ipv6.conf.veth.temp_prefered_lft net.ipv6.conf.veth.temp_valid_lft net.ipv6.conf.veth.use_oif_addrs_only net.ipv6.conf.veth.use_optimistic net.ipv6.conf.veth.use_tempaddr net.ipv6.neigh.veth.anycast_delay net.ipv6.neigh.veth.app_solicit net.ipv6.neigh.veth.base_reachable_time_ms net.ipv6.neigh.veth.delay_first_probe_time net.ipv6.neigh.veth.gc_stale_time net.ipv6.neigh.veth.locktime net.ipv6.neigh.veth.mcast_resolicit net.ipv6.neigh.veth.mcast_solicit net.ipv6.neigh.veth.proxy_delay net.ipv6.neigh.veth.proxy_qlen net.ipv6.neigh.veth.retrans_time_ms net.ipv6.neigh.veth.ucast_solicit net.ipv6.neigh.veth.unres_qlen net.ipv6.neigh.veth.unres_qlen_bytes net.sctp.addip_enable net.sctp.addip_noauth_enable net.sctp.addr_scope_policy net.sctp.association_max_retrans net.sctp.auth_enable net.sctp.cookie_hmac_alg net.sctp.cookie_preserve_enable net.sctp.default_auto_asconf net.sctp.hb_interval net.sctp.intl_enable net.sctp.max_autoclose net.sctp.max_burst net.sctp.max_init_retransmits net.sctp.path_max_retrans net.sctp.pf_enable net.sctp.pf_retrans net.sctp.prsctp_enable net.sctp.rcvbuf_policy net.sctp.reconf_enable net.sctp.rto_alpha_exp_divisor net.sctp.rto_beta_exp_divisor net.sctp.rto_initial net.sctp.rto_max net.sctp.rto_min net.sctp.rwnd_update_shift net.sctp.sack_timeout net.sctp.sctp_mem net.sctp.sctp_rmem net.sctp.sctp_wmem net.sctp.sndbuf_policy net.sctp.valid_cookie_life net.sctp.rto_alpha_exp_divisor net.sctp.rto_beta_exp_divisor net.sctp.rto_initial net.sctp.rto_max net.sctp.rto_min net.sctp.rwnd_update_shift net.sctp.sack_timeout net.sctp.sctp_mem net.sctp.sctp_rmem net.sctp.sndbuf_policy net.sctp.valid_cookie_life
最新发布
09-26
### net.ipv4.conf.veth `net.ipv4.conf.veth` 是针对 `veth` 虚拟网络设备的 IPv4 配置相关参数集合。`veth` 设备通常用于创建虚拟网络接口对,常用于容器网络等场景。这个参数集合里包含众多子参数,例如 `net.ipv4.conf.veth.send_redirects`,它控制该接口是否发送 ICMP 重定向消息;`net.ipv4.conf.veth.accept_redirects` 则决定是否接受来自该接口的 ICMP 重定向消息。 ### net.ipv4.ip_local_reserved_ports 该参数用于将特定的端口范围保留给非特权用户使用。即便不是 root 用户,也能够绑定这些保留的端口,这对某些服务和应用程序而言十分有用,特别是当希望以非 root 用户身份运行网络服务时[^1]。 ### net.ipv4.neigh.veth `net.ipv4.neigh.veth` 是与 `veth` 设备的 ARP(地址解析协议)邻居表相关的参数集合。ARP 用于将 IPv4 地址解析为 MAC 地址。此参数集合包含一些子参数,像 `net.ipv4.neigh.veth.gc_stale_time`,它定义了邻居表项变为陈旧状态后多久会被垃圾回收;`net.ipv4.neigh.veth.base_reachable_time_ms` 规定了邻居可达性确认的基础时间。 ### net.ipv4.tcp_mem `net.ipv4.tcp_mem` 是一个三元组参数,格式为 `[min, pressure, max]`。它控制着 TCP 协议栈使用的内存量。`min` 表示 TCP 可以使用的最小内存量;当 TCP 使用的内存超过 `pressure` 时,内核会开始尝试释放一些 TCP 内存;而 `max` 则是 TCP 可以使用的最大内存量。例如: ```plaintext net.ipv4.tcp_mem = 131072 262144 524288 ``` ### net.ipv4.udp_mem `net.ipv4.udp_mem` 同样是一个三元组参数 `[min, pressure, max]`,用于控制 UDP 协议栈使用的内存量。其含义与 `net.ipv4.tcp_mem` 类似,分别规定了 UDP 可使用的最小、触发压力释放和最大内存量。 ### net.ipv6.conf.veth `net.ipv6.conf.veth` 是针对 `veth` 虚拟网络设备的 IPv6 配置相关参数集合。包含如 `net.ipv6.conf.veth.accept_ra`,它决定该接口是否接受 IPv6 路由器通告;`net.ipv6.conf.veth.autoconf` 控制是否启用 IPv6 自动配置功能。 ### net.ipv6.neigh.veth `net.ipv6.neigh.veth` 与 `veth` 设备的 ND(邻居发现协议)邻居表相关。ND 用于在 IPv6 网络中进行地址解析和邻居可达性检测。该参数集合的子参数例如 `net.ipv6.neigh.veth.gc_stale_time` 定义了邻居表项变为陈旧状态后的垃圾回收时间。 ### net.sctp `net.sctp` 是与 SCTP(流控制传输协议)相关的参数集合。SCTP 是一种面向连接的传输层协议,提供多流和多宿特性。`net.sctp` 下有许多子参数,如 `net.sctp.max_init_retransmits` 控制 SCTP 关联初始化时的最大重传次数;`net.sctp.path_max_retrans` 规定了 SCTP 路径上的最大重传次数。
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值