반응형

 

기본 설정

hostname 설정 (config)# hostname NEXG_VPN 사용자 계정 설정 (config)# username jinsu secret jinsu1234

 

 

interface IP 설정

  • eth0 은 brige interface로 lan 포트에 대한 switch 포트다.
(config)# interface lo (config-if)# ip address 192.168.0.1/32 (config-if)# no shutdown ! (config)# interface eth1 (config-if)# description EXT_Port (config-if)# ip address 192.168.1.1/30 (config-if)# ip address 192.168.2.1/30 secondary (config-if)# no shutdown

 

 

line vty 설정

  • login local - 로컬 계정으로 로그인 허용
  • exec-timeout 5 0 - 장비에 접속시 5분동안 반응이 없으면 접속 종료
  • local secret digest sha512 - 장비 접속 인증방식 설정
기본 접속 설정 시 (config)# line vty (config-line)# login local (config-line)# exec-timeout 5 0 (config-line)# local secret digest sha512 tacacs+ 사용시 (config-line)# local tacacs+ local

 

 

웹서버 설정

  • HTTP
(config)# ip http port 17877 (config)# ip http server
  • HTTPS
(config)# ip http secure-port 17877 (config)# ip http secure-server

 

 

SSH 연결 설정

  • 장비 시간 설정 변경시 rsa key 재 생성 필요 ( rsa key 지우는 명령 X)
SSH 키 생성 # generate crypto key rsa label jinsu jinsu 이름으로 crypto key 생성 # show crypto key mypubkey rsa SSH 설정 (config)# ip ssh rsa keypair-name jinsu (config)# ip ssh port 2222 (config)# ip ssh server SSH 서버 상태 확인 # show ip ssh server status

 

 

Logging 설정

1. local 로그 저장

  • logging local all - 로컬에 모든 로그 저장
  • logging local path disk1:/log alert 30 purge 20 stat - 저장공간 30퍼 남으면 알람 20퍼 남으면 삭제
(config)# logging local all (config)# logging local path disk1:/log alert 30 purge 20 stat

2. remote 로그 저장

(config)# logging remote 192.168.100.1 ips l7filter session appgw-http appgw-mail appgw-im appgw-ftp ipsec system audit vpdn user-identity (config)# logging source 192.168.0.1

 

 

VOS 업그레이드 및 변경

# copy ftp://admin@192.168.100.1/vos-4.6-octeon-150126.bin disk0:/ /f # boot system vos-4.6-octeon-150126.bin # reload

 

 

수동 백업, 복원, 삭제

  • 수동 백업, 복원, 삭제
백업 # copy disk0:/startup-config disk0:/startup-config.bak # show disk0:/startup-config.bak 복원 # copy disk0:/startup-config.bak disk0:/start-config # copy disk0:/startup-config.bak disk0:/startup-config /f 삭제 # delete disk0:/startup-config.bak

 

 

공장 설정 초기화

# configure reset [yes/no] yes # reload [yes/no] yes

 

 

인터페이스 상태 감시

  • 회선 연결 장비가 Hang 상태로 통신이 불가능 할 때 회선 링크를 강제로 끊는 기능

1. 고정 IP를 사용하는 경우

  • icmp 사용하면 상대 장비에 트래픽을 발생하여 차단하므로 주의해서 사용
  • icmp 패킷을 5초 간격으로 3번 응답 실패시 회선 Down
(config)# interface eth1 (config-if)# ip address 10.10.10.1/24 link-timeout 5 3 icmp 10.10.10.254

2. DHCP 를 사용하는 경우

  • arp 패킷을 5초 간격으로 3번 응답 실패시 회선 Down
(config)# interface eth2 (config-if)# ip address dhcp link-timeout 5 3 arp 인터페이스 상태 확인 # show ip interface brief 링크 상태 확인 # show link

 

필수 - 회선이 2개 이상일 경우 PBR 설정 필수

(config)# ip route policy 10 table 10 source eth1 10.10.10.254 eth1 (config)# ip route policy 20 table 20 source eth2 eth2 dhcp Policy 확인 # show ip route policy
권장
1. link-timeout 5 3 arp ( VDSL, Metro 고속회선에 사용)
2. link-timeout 8 3 icmp ( ADSL 저속 회선 또는 손실이 많은 회선에 사용)

 

 

Static 라우팅

(config)# ip route 0.0.0.0/0 10.10.10.254 라우팅 확인 # show ip route

 

 

ECMP 라우팅

  • 라우팅 뒤에 AD값을 추가하여 Equal Cost 설정
(config)# ip route 0.0.0.0/0 eth1 dhcp (config)# ip route 0.0.0.0/0 eth2 dhcp 100

 

 

NTP 설정

  • ntp ignore-offset - 기본 시간 (1000sec) 이상 시간차가 날 경우에도 동기화 설정
자동 설정 (config)# ntp source eth0 (config)# ntp server 203.248.240.140 (config)# ntp server 210.98.16.100 (config)# ntp ignore-offset (config)# clock timezone KST 9 수동 설정 ( 1회 ) # clock ntpdate 203.248.240.140 NTP 상태 확인 # show ntp status # show ntp associations

 

 

VLAN 설정

VLAN 생성 (config)# vlan database (config-vlan)# vlan 10 state enable (config-vlan)# vlan 20 state enable 인터페이스에 VLAN 선언 (config)# interface eth0 (config-if)# switchport (config-if)# switchport mode trunk (config-if)# switchport allowd vlan all (config-if)# no shutdown (config)# interface lan1 (config-if)# switchport (config-if)# switchport access vlan 10 (config-if)# no shutdown (config)# interface lan2 (config-if)# switchport (config-if)# switchport access vlan 20 (config-if)# no shutdown VLAN 가상 인터페이스 설정 (config)# interface vlan0.10 (config-if)# ip addess 10.10.10.1 (config-if)# no shutdown VLAN 확인 # show vlan brief

 

 

DHCP server 설정

내부 사용자 인터페이스 (config)# interface eth1 (config-if)# ip address 192.168.1.1/24 (config-if)# no shutdown DHCP Pool 설정 (config)# ip dhcp pool jinsu (dhcp-config)# network 192.168.1.0 255.255.255.0 (dhcp-config)# range 192.168.1.100 192.168.1.200 (dhcp-config)# dns-server 168.126.63.1 (dhcp-config)# dns-server 168.126.63.2 (dhcp-config)# default-router 192.168.1.1 DHCP 사용할 내부 인터페이스 (config)# ip dhcp server eth1 dhcp 확인 # show ip dhcp pool

 

 

VRRP 설정

  • virtual-ip 192.168.1.1 backup - 가상 GW 설정
  • circuit-failover eth2 100 - eth2 인터페이스가 Down되면 priority 100 감소
  • arp-send fail-over 3 - 링크가 살거나 장비가 살아올라올때 fail-over 시 GARP 주기 3회
(config)# router vrrp 10 eth1 (config-router)# virtual-ip 192.168.1.1 backup (config-router)# priority 200 (config-router)# circuit-failover eth2 100 (config-router)# arp-send fail-over 3 (config-router)# enable VRRP 확인 # show vrrp brief

 

 

System 성능 확인

CPU 기본 상태 보기 / 상세 상태 보기, 프로세스 Uptime 상태 확인 # sh process cpu detail Memory 기본 상태 보기 / 상세 상태 보기, 프로세스 Uptime 상태 확인 # sh process memory detail

 

 

반응형

+ Recent posts