Router>
Router>
Router>en
Router#
Router#sh run
Building configuration...
Current configuration : 975 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2901/K9 sn FTX1524P1R4
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.1
encapsulation dot1Q 10
ip address 192.168.10.254 255.255.255.0
!
interface GigabitEthernet0/0.2
encapsulation dot1Q 20
ip address 192.168.20.254 255.255.255.0
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.1
encapsulation dot1Q 16
ip address 172.16.1.254 255.255.255.0
!
interface GigabitEthernet0/1.2
encapsulation dot1Q 17
ip address 172.17.1.254 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Konfigure switch
switch-DHCP>
switch-DHCP>
switch-DHCP>en
switch-DHCP#sh run
Building configuration...
Current configuration : 1731 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname switch-DHCP
!
!
ip dhcp excluded-address 192.168.10.10 192.168.10.100
ip dhcp excluded-address 192.168.20.10 192.168.20.100
!
ip dhcp pool dhcp-vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.254
dns-server 192.168.1.1
ip dhcp pool dhcp-vlan20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.254
dns-server 192.168.1.1
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.10.1 255.255.255.0
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
switch-DHCP#
switch-DHCP#
switch-DHCP#
Penampakan salah satu komputer
Gambar Jaringan
Ok kawan kawan selamat mencoba...
0 Comments