Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- R1#enable
- R1#conf t
- R1(config)#interface fa 0/0
- R1(config-if)#ip addres
- R1(config-if)#ip address dhcp
- R1(config-if)#ip nat outside
- R1(config-if)#no shutdown
- R1(config-if)#interface fa 0/1
- R1(config-if)#ip add
- R1(config-if)#ip address 10.10.10.1 255.255.255.0
- R1(config-if)#ip nat inside
- R1(config-if)#exit
- R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.30.1
- R1(config)#access-list 33 permit 10.10.10.0 0.0.0.255
- R1(config)#ip nat inside source LIST 33 INTERface fastEthernet 0/0 overload
- R1(config)#do write
- Building configuration...
- [OK]
- R1(config)#ip name-server 8.8.8.8
- R1(config)#ip domain-lookup
- R1(config)#ntp server 0.hu.pool.ntp.org
- R1(config)#logging on
- R1(config)#logging host 10.10.10.2
- R1(config)#logging trap informational
- R1(config)#logging facility local7
- R1(config)#service timestamps log
- R1(config)#username admin privil
- R1(config)#username admin privilege 15 secret asdQWE123
- R1(config)#do logout
- R1 con0 is now available
- Press RETURN to get started.
- R1#
- R1#
- 00:31:30: %SYS-5-CONFIG_I: Configured from console by console
- R1#
- 00:31:31: %SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 10.10.10.2 started - CLI initiated
- R1#do write
- ^
- % Invalid input detected at '^' marker.
- R1#conf t
- Enter configuration commands, one per line. End with CNTL/Z.
- R1(config)#do write
- Building configuration...
- [OK]
- R1(config)#show ip interface brief
- ^
- % Invalid input detected at '^' marker.
- R1(config)#do show ip interface brief
- Interface IP-Address OK? Method Status Protocol
- FastEthernet0/0 192.168.30.75 YES DHCP up up
- Serial0/0 unassigned YES unset administratively down down
- FastEthernet0/1 10.10.10.1 YES manual administratively down down
- Serial0/1 unassigned YES unset administratively down down
- NVI0 unassigned NO unset up up
- R1(config)#line con 0
- R1(config-line)#login local
- R1(config-line)#interface fa 0/1
- R1(config-if)#no shutdown
- R1(config-if)#line con 0
- 00:35:04: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
- 00:35:05: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
- R1(config-if)#do logout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement