はじめに
本記事は下記検証の一部です。メインの部分ではないので、簡単な説明だけ載せています。
構成図

設定(config)
以下、show runの結果です。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
RT01#sh run Building configuration... Current configuration : 2372 bytes ! ! Last configuration change at 07:37:35 UTC Wed Apr 23 2025 by admin ! version 15.4 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname RT01 ! boot-start-marker boot-end-marker ! ! enable secret 5 $1$WJFk$6QRnNnLWC.ZZZZZZZZZ/ ! no aaa new-model memory-size iomem 15 ! ! ! ! ! ! ! ! ! ! ! ! ! ! no ip domain lookup ip domain name orange.local ip cef no ipv6 cef ! ! ! ! ! multilink bundle-name authenticated ! ! ! ! ! ! ! ! cts logging verbose license udi pid C891FJ-K9 sn XXXXXXXXXX ! ! vtp mode transparent username admin password 7 1218011A1B05 ! ! ! ! ! vlan 2,99,101-102 ! ip ssh version 2 ! ! ! ! ! ! ! ! ! ! ! interface BRI0 no ip address encapsulation hdlc shutdown isdn termination multidrop ! interface FastEthernet0 ip address 10.0.0.254 255.255.255.0 ip helper-address 10.0.1.2 duplex auto speed auto ! interface GigabitEthernet0 switchport access vlan 2 no ip address ! interface GigabitEthernet1 switchport access vlan 102 no ip address ! interface GigabitEthernet2 no ip address ! interface GigabitEthernet3 no ip address ! interface GigabitEthernet4 no ip address ! interface GigabitEthernet5 no ip address ! interface GigabitEthernet6 no ip address ! interface GigabitEthernet7 switchport access vlan 99 no ip address ! interface GigabitEthernet8 ip address 10.0.1.254 255.255.255.0 duplex auto speed auto ! interface Vlan1 no ip address ! interface Vlan2 ip address 192.168.2.254 255.255.255.0 ! interface Vlan99 ip address 192.168.99.3 255.255.255.0 ! interface Vlan100 no ip address ! interface Vlan102 ip address 10.0.2.254 255.255.255.0 ip helper-address 10.0.1.2 ! interface Async3 no ip address encapsulation slip ! ip forward-protocol nd no ip forward-protocol udp tftp no ip forward-protocol udp netbios-ns no ip forward-protocol udp netbios-dgm no ip http server no ip http secure-server ! ! ip route 0.0.0.0 0.0.0.0 192.168.99.254 ! ! ! control-plane ! ! mgcp behavior rsip-range tgcp-only mgcp behavior comedia-role none mgcp behavior comedia-check-media-src disable mgcp behavior comedia-sdp-force disable ! mgcp profile default ! ! ! ! ! ! ! line con 0 login local no modem enable line aux 0 line 3 modem InOut speed 115200 flowcontrol hardware line vty 0 4 login local transport input all ! scheduler allocate 20000 1000 ! ! ! end |
簡単な解説
構成図の通り、3つのセグメントを接続しています。大事な部分は「ip helper-address 10.0.1.2」です。今回APとDHCPサーバのネットワークを分離させるためにこのルータを置いているので、リレーエージェントとして動作するように設定が入っています。
その他に「vlan 99」がありますが、これは個人的に作成している管理用(ログイン用)のVLANです。Vlan2はRadiusサーバにつなぐための設定です。デフォルトのログイン用アドレスがあったので、つなげられるようにルータにも入れています。