Changes between Version 16 and Version 17 of Cnbp2019/Agenda/NetworkSetup
- Timestamp:
- Feb 26, 2019, 5:22:22 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Cnbp2019/Agenda/NetworkSetup
v16 v17 136 136 You can now start making configurations. 137 137 138 - The first thing you have to add is the hostname of the device. The hostname is the device's identification. In this Lab device name or the hostname is automatically configured based on the GUI edits we did previously. If you want to change it you may use138 - The first thing you have to add is the hostname of the device. The hostname is the device's identification. In this Lab, device name or the hostname is automatically configured based on the GUI edits we did previously. If you want to change it you may use 139 139 {{{ 140 140 hostname <device name> 141 141 }}} 142 142 143 - Then let's give a enable secret. Which is a password you set when you go to the privileged mode from the user mode? We will use the ''' class password''' as the enable secret143 - Then let's give a enable secret. Which is a password you set when you go to the privileged mode from the user mode? We will use the '''<class password>''' as the enable secret 144 144 {{{ 145 145 enable secret <class password> … … 172 172 }}} 173 173 - Finally let's enable ssh (version 2) in the device. Type '''exit''' to go back to previous mode (config mode) from line console config mode 174 * Configure a domain name. Use '''instXY. learn.ac.lk''' for this lab where XY is your group id.175 {{{ 176 ip domain name instXY. learn.ac.lk174 * Configure a domain name. Use '''instXY.ac.lk''' for this lab where XY is your group id. 175 {{{ 176 ip domain name instXY.ac.lk 177 177 }}} 178 178 * Create an ssh user with a password. In here we will use the username admin with the class password … … 226 226 227 227 228 - On switch FAC2 we have only one routed port. Get the IP from the [#point1 table] 229 228 * On switch FAC2 we have only one routed port. Get the IP from the [#point1 table] 230 229 * Link to FAC1 231 230 … … 242 241 * On FAC1, Define OSPF process and Process ID. In this lab use process ID as 1 243 242 {{{ 243 FAC1(config)#ip routing 244 244 FAC1(config)#router ospf 1 245 245 }}} … … 248 248 FAC1(config-router)#router-id 10.XY.2.1 249 249 }}} 250 * You are announcing to the whole core network (10.XY.0.0/24) in area 2. Use this command for this251 {{{ 252 FAC1config-router)# network 10.XY.0.0 0.0.0.255 area 2250 * You are announcing to the default route via FAC1. Use this command for this 251 {{{ 252 FAC1config-router)#default-information originate 253 253 FAC1(config-router)#exit 254 254 }}} … … 267 267 * Give the router ID, this will be the same as ipv4 ospf router ID for simplicity 268 268 {{{ 269 FAC1(config-rtr)#router-id 10. 0.2.1270 }}} 271 * You are going to announce the subnets which are directly connects to you. Use this command for that,272 {{{ 273 FAC1(config-rtr)# redistribute connected269 FAC1(config-rtr)#router-id 10.XY.2.1 270 }}} 271 * You are going to originate the default route too. Use this command for that, 272 {{{ 273 FAC1(config-rtr)#default-information originate 274 274 FAC1(config-rtr)#exit 275 275 }}} … … 278 278 FAC1(config)ipv6 route ::/0 2401:DD00:20XY:1::FFFF 279 279 }}} 280 281 - Follow the same steps in FAC2 282 283 {{{ 280 * Assign ospf to Ports on FAC1 281 {{{ 282 FAC1(config)#int fa 0/0 283 FAC1(config-if)#ip ospf 1 area 2 284 FAC1(config-if)#ipv6 ospf 1 area 2 285 FAC1(config-if)#exit 286 }}} 287 * Configure routing on FAC2 288 {{{ 289 FAC2(config)#ip routing 284 290 FAC2(config)#router ospf 1 285 291 FAC2(config-router)#router-id 10.XY.3.1 286 FAC2(config-router)#network 10.XY.0.0 0.0.0.255 area 2287 292 FAC2(config-router)#exit 288 293 FAC2(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.6 289 294 FAC1(config)# ipv6 unicast-routing 290 295 FAC1(config)#ipv6 router ospf 1 291 FAC2(config-rtr)#router-id 10.0.3.1 292 FAC2(config-rtr)#redistribute connected 296 FAC2(config-rtr)#router-id 10.XY.3.1 293 297 FAC2(config-rtr)#exit 294 FAC1(config)ipv6 route ::/0 2401:DD00:20XY:2::FFFF 298 FAC2(config)#int fa 0/1 299 FAC2(config-if)#ip ospf 1 area 2 300 FAC2(config-if)#ipv6 ospf 1 area 2 301 FAC2(config-if)#exit 295 302 }}} 296 303