RFC 7703 MAP T測試經驗

2021-10-08 09:33:33 字數 3171 閱讀 5331

map-t cpe是跑fedora11的linux虛擬機器。主機其實也是3臺虛擬機器,1臺是linux kubuntu 12.04,一台是win7,一台是win xp。

ipv6路由器是配置了靜態路由的linux機器。

nic.br_ipv4是連線ipv4公網的交換機,nic.br ipv6是連線ipv6公網的交換機。

配置要點:

ipv6 prefix=2001:db8:6:d600::/56

ipv4 prefix=198.51.100.248/29

ipv6 only介面:2001:db8:6:e00::2/64

ipv4 only介面:192.0.2.171/27

配置檔案:

map-t stop

./control stop

echo 1 > /proc/sys/net/ipv4/ip_forward

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding

echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf

echo 0 > /proc/sys/net/ipv6/conf/eth1/autoconf

配置ipv6介面:

ifconfig eth0 2001:db8:6:e000::2/64

靜態路由:

ip -6 route add 2001:db8:6:d600::/56 via 2001:db8:6:e000::1 dev eth0

route add -a inet6 add default gw 2001:db8:6:e000::1

配置ipv4介面:

ifconfig eth1 192.0.2.171/27

ip route add default via 192.0.2.161 dev eth1

map-t start

./control start

./utils/ivictl -r -p 198.51.100.248/29 -p 2001:db8:6:d600::/56 -r 16 -m 2

./utils/ivictl -r -d -p 2001:db8:6:d6ff::/64

./utils/ivictl -s -i eth1 -i eth0

配置要點:

inte***ce-ipv6-to-mapt-core=2001:db8:6:e000::1/64

inte***ce-ipv6-to-mapt-cpe1=2001:db8:6:e001::1/64

inte***ce-ipv6-to-gateway=2001:db8:0:6160::ed19/64

配置檔案:

系統配置檔案:

echo 1 > /proc/sys/net/ipv4/ip_forward

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding

echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf

echo 0 > /proc/sys/net/ipv6/conf/eth1/autoconf

echo 0 > /proc/sys/net/ipv6/conf/eth2/autoconf

配置eth0,ipv6介面,連線map-t core(br)

ifconfig eth0 inet6 add 2001:db8:6:e000::1/64

配置eth1,ipv6介面,連線cpe

ifconfig eth1 inet6 add 2001:db8:6:e001::1/64

配置eth2,ipv6介面,連線閘道器

ifconfig eth2 inet6 add 2001:db8:0:6160::ed19/64

靜態路由:

ip -6 route add 2001:db8:6:d6ff::/64 via 2001:db8:6:e000::2 dev eth0

ip -6 route add 2001:db8:6:d640::/64 via 2001:db8:6:e001::2 dev eth1

ip -6 route add 2001:db8:6:e000::/64 dev eth0

ip -6 route add 2001:db8:6:e001::/64 dev eth1

ip -6 route add ::/0 via 2001:db8:0:6160::1ab6 dev eth2

配置要點:

ipv6-prefix=2001:db8:6:d600::/56

ipv4-prefix=198.51.100.248/29

inte***ce-ipv6-only=2001:db8:6:e001::2/64

inte***ce-ipv4-lan=198.51.100.249/29

配置檔案:

系統配置檔案:

echo 1 > /proc/sys/net/ipv4/ip_forward

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding

echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf

echo 0 > /proc/sys/net/ipv6/conf/eth1/autoconf

配置eth0,ipv6 only介面:

ip -6 addr add 2001:db8:6:e001::2/64 dev eth0

ip -6 route add default via 2001:db8:6:e001::1 dev eth0

配置eth1,ipv4 only介面:

ip addr add 198.51.100.249/29 dev eth1

./control start

./utils/ivictl -r -d -p 2001:db8:6:d6ff::/64

./utils/ivictl -s -i eth1 -i eth0 -h -a 198.51.100.250/29 -p 2001:db8:6:d600::/56 -r 16 -m 2 -o 0 -c 1440

主機需要配置如下ip:

o ipv4-address=198.51.100.250/29

o ipv4-gateway=198.51.100.249

o ipv4-dns=8.8.8.8

o ipv6 is disabled

acwing770單詞替換

輸入乙個字串,以回車結束 字串長度不超過100 該字串由若干個單詞組成,單詞之間用乙個空格隔開,所有單詞區分大小寫。現需要將其中的某個單詞替換成另乙個單詞,並輸出替換之後的字串。輸入格式 輸入共3行。第1行是包含多個單詞的字串 s 第2行是待替換的單詞a 長度不超過100 第3行是a將被替換的單詞b...

770 仿射密碼 暴力列舉

時間限制 1000 ms 記憶體限制 65535 kb 難度 1 描述 仿射密碼是替換密碼的另乙個特例,可以看做是移位密碼和乘數密碼的結合。其加密變換如下 e m k1 m k2 mod q 其中k1,k2為金鑰,且0現已知一經過仿射加密的密文和金鑰,請破譯出它的明文。輸入 輸入包含不超過1000組...

docker部署solr7 7 0記錄

1.docker pull solr 2.docker run name my solr id net host t solr 3.建立core docker exec it user solr my solr bin solr create core c goodlist 進入core對應的目錄 ...