Главная › Форумы › TECHNICAL SECTION › Trash basket › Настройка интернета на Cisco 2921 (IPoE)
- В этой теме 1 ответ, 1 участник, последнее обновление 11 месяцев, 1 неделя назад сделано
E-tec.
-
АвторСообщения
-
31.07.2018 в 18:25 #195
Все действия производятся на маршрутизатор Cisco 2921 через SSH или подключившись через синий сервис шнур по COM порту и в режиме глобального конфигурирования ( conf t ), вводятся следующие команды:
ip dhcp pool local
network IP сети маска сети (например: network 192.168.0.0 255.255.255.0)
default-router IP Cisco (обычно 1, пример: default-router 192.168.0.1)
dns-server DNS сервера ВАШЕГО провайдера
exit
interface GigabitEthernet0/1 – порт маршрутизатора
description Internet_1 – описание порта маршрутизатора
ip address IP адрес маска провайдера (пример: ip address 10.10.10.10 255.255.255.255)
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
no keepalive
exit
ip route 0.0.0.0 0.0.0.0 10.10.10.10
exit
write
__________________________________________________
conf t
ip dhcp pool local
dns-server x.x.x.x 8.8.8.8
exitip route 0.0.0.0 0.0.0.0 x.x.x.x(шлюз)
interface GigabitEthernet0/1
ip address x.x.x.x 255.255.255.yDNS
Эр-Телеком
212.33.225.212
5.3.3.3Ростелеком
83.219.25.69
89.20.100.5306.10.2023 в 15:30 #2462#show run
Building configuration…Current configuration : 2908 bytes
!
! Last configuration change at 07:50:36 UTC Thu Oct 5 2023 by cisco
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R5920_1
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$JY72$ck4TPZTNhLfMHHaRW2Oej.
!
aaa new-model
!
!
!
!
!
!
!
aaa session-id common
!
!
!
!
!
!
!
!
!
!
!
!
ip dhcp pool local
dns-server 212.120.160.130 8.8.8.8
!
!
!
ip domain name R5929
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
cts logging verbose
!
!
license udi pid CISCO1921/K9 sn FGL2048208V
!
!
username cisco privilege 15 secret 5 $1$bjFi$21xcBzlJW5J55JINaDQr2.
!
redundancy
!
!
ip ssh version 2
!
!
!
!
interface Tunnel5920
description GRE 11 GB_5920_pri
ip address 10.159.80.10 255.255.255.252
tunnel source GigabitEthernet0/0
tunnel destination 5.140.98.82
tunnel key 62159
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description ###_to_WAN_###
ip address 5.140.98.246 255.255.255.252
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
no cdp enable
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
pppoe enable group global
no keepalive
!
interface FastEthernet0/0/0
description ##to_VIPNET##
ip address 172.17.59.65 255.255.255.240
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
interface FastEthernet0/0/1
description ###to_WAN###
no ip address
ip nat outside
ip virtual-reassembly in
duplex auto
speed 100
pppoe enable group global
pppoe-client dial-pool-number 1
pppoe-client ppp-max-payload 1492
!
interface Dialer1
mtu 1492
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation ppp
ip tcp adjust-mss 1380
dialer pool 1
dialer-group 1
ppp authentication chap callin
ppp chap hostname 77598018304
ppp chap password 0 3375265
no cdp enable
!
router bgp 65020
bgp router-id 10.159.80.10
bgp log-neighbor-changes
network 10.59.80.0 mask 255.255.252.0
network 10.159.80.0 mask 255.255.252.0
network 172.17.59.64 mask 255.255.255.240
neighbor 10.159.80.9 remote-as 65059
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list PRIVATE interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 5.140.98.245
ip route 10.59.81.0 255.255.255.0 172.17.59.66
!
ip access-list standard PRIVATE
permit 10.59.81.0 0.0.0.255
ip access-list standard SNMP_ACL
permit 10.100.1.74
permit 82.138.54.84
!
!
!
snmp-server community FbMsE_3807 RO SNMP_ACL
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
exec-timeout 0 0
privilege level 15
logging synchronous
transport input ssh
transport output ssh
!
scheduler allocate 20000 1000
!
end -
АвторСообщения
- Для ответа в этой теме необходимо авторизоваться.