linux双网卡 ipv4 ipv6 双栈,从IPV4到IPV6之双栈

实验目的:

通过实验了解IPV6双栈的部署

实验拓扑:

f9eaa86325c3838ce2a61dc0a71e3232.png

配置:

R1:

1 : !

2 : version 12.4

3 : service timestamps debug datetime msec

4 : service timestamps log datetime msec

5 : no service password-encryption

6 : !

7 : hostname R1

8 : !

9 : boot-start-marker

10 : boot-end-marker

11 : !

12 : !

13 : no aaa new-model

14 : memory-size iomem 5

15 : ip cef

16 : !

17 : !

18 : !

19 : !

20 : no ip domain lookup

21 : ip domain name lab.local

22 : ipv6 unicast-routing

23 : !

24 : multilink bundle-name authenticated

25 : !

26 : !

27 : !

28 : !

29 : !

30 : !

31 : !

32 : !

33 : !

34 : !

35 : !

36 : !

37 : !

38 : !

39 : !

40 : !

41 : !

42 : !

43 : !

44 : !

45 : !

46 : !

47 : !

48 : archive

49 :  log config

50 :   hidekeys

51 : !

52 : !

53 : !

54 : !

55 : !

56 : !

57 : interface FastEthernet0/0

58 :  ip address 192.168.80.254 255.255.255.0

59 :  duplex auto

60 :  speed auto

61 :  ipv6 address 2001::254/64

62 : !

63 : interface FastEthernet0/1

64 :  no ip address

65 :  speed 100

66 :  full-duplex

67 :  ipv6 address 2000::1/64

68 : !

69 : interface FastEthernet1/0

70 :  ip address 192.168.14.1 255.255.255.0

71 :  duplex auto

72 :  speed auto

73 : !

74 : !

75 : !

76 : no ip http server

77 : no ip http secure-server

78 : !

79 : !

80 : !

81 : !

82 : !

83 : !

84 : !

85 : control-plane

86 : !

87 : !

88 : !

89 : !

90 : !

91 : !

92 : !

93 : !

94 : !

95 : !

96 : line con 0

97 :  exec-timeout 0 0

98 :  privilege level 15

99 :  logging synchronous

100 : line aux 0

101 :  exec-timeout 0 0

102 :  privilege level 15

103 :  logging synchronous

104 : line vty 0 4

105 :  login

106 : !

107 : !

108 : end

R2:

1 : !

2 : version 12.4

3 : service timestamps debug datetime msec

4 : service timestamps log datetime msec

5 : no service password-encryption

6 : !

7 : hostname R2

8 : !

9 : boot-start-marker

10 : boot-end-marker

11 : !

12 : !

13 : no aaa new-model

14 : memory-size iomem 5

15 : ip cef

16 : !

17 : !

18 : !

19 : !

20 : no ip domain lookup

21 : ip domain name lab.local

22 : ipv6 unicast-routing

23 : !

24 : multilink bundle-name authenticated

25 : !

26 : !

27 : !

28 : !

29 : !

30 : !

31 : !

32 : !

33 : !

34 : !

35 : !

36 : !

37 : !

38 : !

39 : !

40 : !

41 : !

42 : !

43 : !

44 : !

45 : !

46 : !

47 : !

48 : archive

49 :  log config

50 :   hidekeys

51 : !

52 : !

53 : !

54 : !

55 : !

56 : !

57 : interface FastEthernet0/0

58 :  no ip address

59 :  duplex auto

60 :  speed auto

61 :  ipv6 address 2001::2/64

62 : !

63 : interface FastEthernet0/1

64 :  no ip address

65 :  shutdown

66 :  duplex auto

67 :  speed auto

68 : !

69 : !

70 : !

71 : no ip http server

72 : no ip http secure-server

73 : !

74 : ipv6 route ::/0 2001::254

75 : !

76 : !

77 : !

78 : !

79 : !

80 : !

81 : control-plane

82 : !

83 : !

84 : !

85 : !

86 : !

87 : !

88 : !

89 : !

90 : !

91 : !

92 : line con 0

93 :  exec-timeout 0 0

94 :  privilege level 15

95 :  logging synchronous

96 : line aux 0

97 :  exec-timeout 0 0

98 :  privilege level 15

99 :  logging synchronous

100 : line vty 0 4

101 :  login

102 : !

103 : !

104 : end

R3:

1 : !

2 : version 12.4

3 : service timestamps debug datetime msec

4 : service timestamps log datetime msec

5 : no service password-encryption

6 : !

7 : hostname R3

8 : !

9 : boot-start-marker

10 : boot-end-marker

11 : !

12 : !

13 : no aaa new-model

14 : memory-size iomem 5

15 : ip cef

16 : !

17 : !

18 : !

19 : !

20 : no ip domain lookup

21 : ip domain name lab.local

22 : ipv6 unicast-routing

23 : !

24 : multilink bundle-name authenticated

25 : !

26 : !

27 : !

28 : !

29 : !

30 : !

31 : !

32 : !

33 : !

34 : !

35 : !

36 : !

37 : !

38 : !

39 : !

40 : !

41 : !

42 : !

43 : !

44 : !

45 : !

46 : !

47 : !

48 : archive

49 :  log config

50 :   hidekeys

51 : !

52 : !

53 : !

54 : !

55 : !

56 : !

57 : interface FastEthernet0/0

58 :  no ip address

59 :  shutdown

60 :  duplex auto

61 :  speed auto

62 : !

63 : interface FastEthernet0/1

64 :  no ip address

65 :  speed 100

66 :  full-duplex

67 :  ipv6 address 2000::3/64

68 : !

69 : !

70 : !

71 : no ip http server

72 : no ip http secure-server

73 : !

74 : ipv6 route ::/0 2000::1

75 : !

76 : !

77 : !

78 : !

79 : !

80 : !

81 : control-plane

82 : !

83 : !

84 : !

85 : !

86 : !

87 : !

88 : !

89 : !

90 : !

91 : !

92 : line con 0

93 :  exec-timeout 0 0

94 :  privilege level 15

95 :  logging synchronous

96 : line aux 0

97 :  exec-timeout 0 0

98 :  privilege level 15

99 :  logging synchronous

100 : line vty 0 4

101 :  login

102 : !

103 : !

104 : end

R4:

1 : !

2 : version 12.4

3 : service timestamps debug datetime msec

4 : service timestamps log datetime msec

5 : no service password-encryption

6 : !

7 : hostname R4

8 : !

9 : boot-start-marker

10 : boot-end-marker

11 : !

12 : !

13 : no aaa new-model

14 : memory-size iomem 5

15 : ip cef

16 : !

17 : !

18 : !

19 : !

20 : no ip domain lookup

21 : ip domain name lab.local

22 : !

23 : multilink bundle-name authenticated

24 : !

25 : !

26 : !

27 : !

28 : !

29 : !

30 : !

31 : !

32 : !

33 : !

34 : !

35 : !

36 : !

37 : !

38 : !

39 : !

40 : !

41 : !

42 : !

43 : !

44 : !

45 : !

46 : !

47 : archive

48 :  log config

49 :   hidekeys

50 : !

51 : !

52 : !

53 : !

54 : !

55 : !

56 : interface FastEthernet0/0

57 :  ip address 192.168.14.4 255.255.255.0

58 :  speed 100

59 :  full-duplex

60 : !

61 : interface FastEthernet0/1

62 :  no ip address

63 :  shutdown

64 :  duplex auto

65 :  speed auto

66 : !

67 : ip route 0.0.0.0 0.0.0.0 192.168.14.1

68 : !

69 : !

70 : no ip http server

71 : no ip http secure-server

72 : !

73 : !

74 : !

75 : !

76 : !

77 : !

78 : !

79 : control-plane

80 : !

81 : !

82 : !

83 : !

84 : !

85 : !

86 : !

87 : !

88 : !

89 : !

90 : line con 0

91 :  exec-timeout 0 0

92 :  privilege level 15

93 :  logging synchronous

94 : line aux 0

95 :  exec-timeout 0 0

96 :  privilege level 15

97 :  logging synchronous

98 : line vty 0 4

99 :  login

100 : !

101 : !

102 : end

验证:

7e8f6bd02200d3fccfa993aedc4da267.png

8b1434b3ca72e78af51720534de4ee9e.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值