The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Настройка VLANs и маршрутизации между ними, !*! Signalman, 06-Авг-04, 13:03  [смотреть все]
Всем привет. Задача на первый взгляд простая..как мне показалось, но прокопавшись с настройкой понял что настроить не могу.
Сеть состоит из следующих железяк:
Router 2610XM - только 1 порт Ethernet
Switch 3550-48 - 2 штучки в каждом по 2 порта GigEth.
Мне нужно сделать несколько виланов. В данный момент все находятся по умолчанию в 1 вилане.
Конфиг Router'a
version 12.2
no service pad
service tcp-keepalives-in
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
no service dhcp
!
hostname tyazh-router
!
logging queue-limit 100
enable secret 5 $1$OL1P$G.hecZs0pdW.qCzoVXsNl0
!
username 726 password 0 726
clock timezone GMT 3
aaa new-model
!
!
aaa authentication ppp default local
aaa session-id common
ip subnet-zero
no ip source-route
!
!
no ip domain lookup
!
no ip bootp server
virtual-profile virtual-template 1
!
chat-script Acc AT OK &F1S0=1 OK
modemcap entry Aceess:MSC=&F1S0=1
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface Loopback0
no ip address
!
interface FastEthernet0/0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip accounting access-violations
no ip mroute-cache
speed 100
full-duplex
no cdp enable
!
interface FastEthernet0/0.1
encapsulation isl 1
ip address 192.168.0.198 255.255.255.0
ip access-group 102 in
no ip redirects
ip nat inside
no ip mroute-cache
traffic-shape rate 500000 12000 12000 1000
no cdp enable
!
interface FastEthernet0/0.2
encapsulation isl 2
ip address 62.113.110.хх 255.255.255.240
ip access-group 101 in
ip nat outside
no ip mroute-cache
traffic-shape rate 500000 12000 12000 1000
no cdp enable
!
interface FastEthernet0/0.3
encapsulation isl 3
ip address 213.189.196.229 255.255.255.252
no ip redirects
no ip mroute-cache
no cdp enable
!
interface Virtual-Template1
ip unnumbered Async65
ppp authentication chap
!
interface Async65
ip address 213.189.196.225 255.255.255.252
no ip redirects
encapsulation ppp
no ip mroute-cache
async mode interactive
no peer default ip address
no keepalive
ppp authentication chap
!
ip nat pool zenon 62.113.110.хх 62.113.110.хх netmask 255.255.255.240
ip nat inside source list 99 pool провайдер overload
ip nat inside source static tcp 192.168.0.200 53 62.113.110.77 53 extendable
ip nat inside source static udp 192.168.0.200 53 62.113.110.77 53 extendable
ip nat inside source static tcp 192.168.0.200 21 62.113.110.77 21 extendable
ip nat inside source static udp 192.168.0.200 21 62.113.110.77 21 extendable
no ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 62.113.110.х
!
!
!
access-list 99 permit 192.168.0.0 0.0.0.255
access-list 101 permit tcp any any established
access-list 101 permit tcp any any eq smtp
access-list 101 permit tcp any any eq 22022
access-list 101 permit tcp any any eq domain
access-list 101 permit udp any any
access-list 101 permit icmp any any packet-too-big
access-list 101 permit icmp any any echo
access-list 101 permit icmp any any echo-reply
access-list 101 permit icmp any any ttl-exceeded
access-list 101 permit tcp any host 62.113.110.77 eq ftp
access-list 101 deny   ip any any
access-list 102 permit ip any any
access-list 102 deny   ip any any
access-list 103 deny   ip any any
no cdp run
!
radius-server authorization permit missing Service-Type
call rsvp-sync
!
mgcp profile default
!
dial-peer cor custom
!
banner login  
This is a private system.
Use by unauthorized persons is prohibited.
All accesses to this service are logged.
!
line con 0
exec-timeout 5 0
speed 115200
line aux 0
exec-timeout 0 0
modem Dialin
modem autoconfigure type usr_courier
no exec
transport input all
autoselect ppp
stopbits 1
speed 57600
flowcontrol hardware
line vty 0 4
access-class 103 in
exec-timeout 0 0
password
transport input none
!
!
end

конфиг каталиста.
Building configuration...

Current configuration : 4082 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname tyazh3550
!
enable secret 5 $1$tkDL$xPe..DAuRJf1AIkb4.kRX.
enable password istel
!
ip subnet-zero
!
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport access vlan 2
no ip address
speed 10
spanning-tree portfast
!
interface FastEthernet0/2
switchport trunk encapsulation isl
switchport mode trunk
no ip address
duplex full
speed 100
!
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
no ip address
!
interface FastEthernet0/8
no ip address
!
interface FastEthernet0/9
no ip address
!
interface FastEthernet0/10
no ip address
!
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
no ip address
!
interface FastEthernet0/13
no ip address
!
interface FastEthernet0/14
no ip address
!
interface FastEthernet0/15
no ip address
!
interface FastEthernet0/16
no ip address
!
interface FastEthernet0/17
no ip address
!
interface FastEthernet0/18
no ip address
!
interface FastEthernet0/19
no ip address
!
interface FastEthernet0/20
no ip address
!
interface FastEthernet0/21
no ip address
!
interface FastEthernet0/22
no ip address
!
interface FastEthernet0/23
no ip address
!
interface FastEthernet0/24
no ip address
!
interface FastEthernet0/25
no ip address
!
interface FastEthernet0/26
no ip address
!
interface FastEthernet0/27
no ip address
!
interface FastEthernet0/28
no ip address
!
interface FastEthernet0/29
no ip address
!
interface FastEthernet0/30
no ip address
!
interface FastEthernet0/31
no ip address
!
interface FastEthernet0/32
no ip address
!
interface FastEthernet0/33
no ip address
!
interface FastEthernet0/34
no ip address
!
interface FastEthernet0/35
no ip address
!
interface FastEthernet0/36
no ip address
!
interface FastEthernet0/37
no ip address
!
interface FastEthernet0/38
no ip address
!
interface FastEthernet0/39
no ip address
!
interface FastEthernet0/40
no ip address
!
interface FastEthernet0/41
no ip address
!
interface FastEthernet0/42
no ip address
!
interface FastEthernet0/43
no ip address
!
interface FastEthernet0/44
no ip address
!
interface FastEthernet0/45
no ip address
!
interface FastEthernet0/46
no ip address
!
interface FastEthernet0/47
no ip address
!
interface FastEthernet0/48
no ip address
speed 100
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface Vlan1
ip address 192.169.254.1 255.255.255.0
no ip route-cache
shutdown
!
ip http server
!
line con 0
exec-timeout 0 0
line vty 0 4
password  login
line vty 5 15
password
login
!
end

и конфиг 2-й циски такойже, только без ISL и чудес на Fa 0/1.
Что нужно сделать чтобы человек из VLAN 4 мог ходить в инет и его никто не видел в сети с VLAN1? каталичты соедены между собой через GigEthe.

  • Настройка VLANs и маршрутизации между ними, !*! sh_, 12:37 , 09-Авг-04 (1)
    Ya nemnogo ne ponyal, a chto mi podrazumevaem pod VLAN 4? V sh ru ya etogo pochemu to ne nashel...
    • Настройка VLANs и маршрутизации между ними, !*! Signalman, 15:01 , 09-Авг-04 (2)
      >Ya nemnogo ne ponyal, a chto mi podrazumevaem pod VLAN 4? V
      >sh ru ya etogo pochemu to ne nashel...

      Вот смотри. Есть конфиг роутера. Я сделал субинтерфейс
      interface FastEthernet0/0.5
      encapsulation isl 5
      ip address 192.168.2.202 255.255.255.0
      Прописал что ip address 192.168.2.203 может выходить (в ACL).

      !
      version 12.2
      no service pad
      service tcp-keepalives-in
      service timestamps debug datetime msec
      service timestamps log datetime msec
      no service password-encryption
      no service dhcp
      !
      hostname tyazh-router
      !
      logging queue-limit 100
      enable secret 5 $1$OL1P$G.hecZs0pdW.qCzoVXsNl0
      !
      username 726 password 0 726
      clock timezone GMT 3
      aaa new-model
      !
      !
      aaa authentication ppp default local
      aaa session-id common
      ip subnet-zero
      no ip source-route
      !
      !
      no ip domain lookup
      !
      no ip bootp server
      virtual-profile virtual-template 1
      !
      chat-script Acc AT OK &F1S0=1 OK
      modemcap entry Aceess:MSC=&F1S0=1
      !
      !
      !
      !
      !
      !
      !
      !
      no voice hpi capture buffer
      no voice hpi capture destination
      !
      !
      mta receive maximum-recipients 0
      !
      !
      !
      !
      interface Loopback0
      no ip address
      !
      interface FastEthernet0/0
      no ip address
      no ip redirects
      no ip unreachables
      no ip proxy-arp
      ip accounting access-violations
      no ip mroute-cache
      speed 100
      full-duplex
      no cdp enable
      !
      interface FastEthernet0/0.1
      encapsulation isl 1
      ip address 192.168.0.198 255.255.255.0
      ip access-group 102 in
      no ip redirects
      ip nat inside
      no ip mroute-cache
      traffic-shape rate 700000 16800 16800 1000
      no cdp enable
      !
      interface FastEthernet0/0.2
      encapsulation isl 2
      ip address 62.113.110.66 255.255.255.240
      ip access-group 101 in
      ip nat outside
      no ip mroute-cache
      traffic-shape rate 700000 16800 16800 1000
      no cdp enable
      !
      interface FastEthernet0/0.3
      encapsulation isl 3
      ip address 213.189.196.229 255.255.255.252
      no ip redirects
      no ip mroute-cache
      no cdp enable
      !
      interface FastEthernet0/0.5
      encapsulation isl 5
      ip address 192.168.2.202 255.255.255.0
      ip access-group 102 in
      no ip redirects
      ip nat inside
      no ip mroute-cache
      no cdp enable
      !
      interface Virtual-Template1
      ip unnumbered Async65
      ppp authentication chap
      !
      interface Async65
      ip address 213.189.196.225 255.255.255.252
      no ip redirects
      encapsulation ppp
      no ip mroute-cache
      async mode interactive
      no peer default ip address
      no keepalive
      ppp authentication chap
      !
      ip nat pool zenon 62.113.110.67 62.113.110.76 netmask 255.255.255.240
      ip nat inside source list 99 pool zenon overload
      ip nat inside source static tcp 192.168.0.200 53 62.113.110.77 53 extendable
      ip nat inside source static udp 192.168.0.200 53 62.113.110.77 53 extendable
      ip nat inside source static tcp 192.168.0.200 21 62.113.110.77 21 extendable
      ip nat inside source static udp 192.168.0.200 21 62.113.110.77 21 extendable
      no ip http server
      ip classless
      ip route 0.0.0.0 0.0.0.0 62.113.110.65
      !
      !
      !
      access-list 99 permit 192.168.0.0 0.0.0.255
      access-list 101 permit tcp any any established
      access-list 101 permit tcp any any eq smtp
      access-list 101 permit tcp any any eq 22022
      access-list 101 permit tcp any any eq domain
      access-list 101 permit udp any any
      access-list 101 permit icmp any any packet-too-big
      access-list 101 permit icmp any any echo
      access-list 101 permit icmp any any echo-reply
      access-list 101 permit icmp any any ttl-exceeded
      access-list 101 permit tcp any host 62.113.110.77 eq ftp
      access-list 101 deny   ip any any
      access-list 102 permit tcp host 192.168.2.203 any
      access-list 102 permit udp host 192.168.2.203 any
      access-list 102 permit tcp host 192.168.0.103 any
      access-list 102 permit tcp host 192.168.0.199 any
      access-list 102 permit udp host 192.168.0.199 any
      access-list 102 permit tcp host 192.168.0.200 any eq domain
      access-list 102 permit udp host 192.168.0.200 any eq domain
      access-list 102 permit tcp host 192.168.0.205 any
      access-list 102 permit udp host 192.168.0.205 any
      access-list 102 permit udp any any eq domain
      access-list 102 permit tcp any any eq domain
      access-list 102 permit tcp any any eq smtp
      access-list 102 permit tcp any any eq pop3
      access-list 102 permit tcp any any eq 443
      access-list 102 permit tcp any any eq 22
      access-list 102 deny   tcp any any eq 69
      access-list 102 deny   udp any any eq tftp
      access-list 102 deny   tcp any any eq 4444
      access-list 102 deny   udp any any eq 4444
      access-list 102 deny   tcp any any eq 135
      access-list 102 deny   udp any any eq 135
      access-list 102 deny   tcp any any eq 137
      access-list 102 deny   udp any any eq netbios-ns
      access-list 102 deny   tcp any any eq 138
      access-list 102 deny   udp any any eq netbios-dgm
      access-list 102 deny   tcp any any eq 139
      access-list 102 deny   udp any any eq netbios-ss
      access-list 102 permit tcp host 192.168.0.203 any eq 22022
      access-list 102 permit tcp host 192.168.0.204 any eq 22022
      access-list 102 permit icmp any any packet-too-big
      access-list 102 permit icmp any any echo
      access-list 102 permit icmp any any ttl-exceeded
      access-list 102 deny   ip any any
      access-list 103 deny   ip any any
      no cdp run
      !
      radius-server authorization permit missing Service-Type
      call rsvp-sync
      !
      !
      mgcp profile default
      !
      !
      !
      dial-peer cor custom
      !
      !
      !
      banner login  
      This is a private system.
      Use by unauthorized persons is prohibited.
      All accesses to this service are logged.
      !
      line con 0
      exec-timeout 5 0
      speed 115200
      line aux 0
      exec-timeout 0 0
      modem Dialin
      modem autoconfigure type usr_courier
      no exec
      transport input all
      autoselect ppp
      stopbits 1
      speed 1200
      flowcontrol hardware
      line vty 0 4
      access-class 103 in
      exec-timeout 0 0
      password istel726
      transport input none
      !
      !
      end


      Далее на свичах прописал:
      Свич А. У него в первый порт смотрит ADSL модем во 2 порт смотрит Роутер.

      #sh running-config int fa 0/2
      Building configuration...

      Current configuration : 131 bytes
      !
      interface FastEthernet0/2
      switchport trunk encapsulation isl
      switchport mode trunk
      no ip address
      duplex full
      speed 100
      end

      Далее на Gig порте прописал
      interface GigabitEthernet0/1
      switchport trunk encapsulation isl
      switchport mode trunk
      end


      Свич Б. Он подключен к А свичу через Gig 0/1

      interface FastEthernet0/5
      switchport mode access
      switchport access vlan 5
      spanning-tree portfast
      end
      На 5 порте свича Б висит VLAN 5.
      Соответственно настроен Gig на свиче Б.
      interface GigabitEthernet0/1
      switchport trunk encapsulation isl
      switchport mode trunk
      end


      Так вот делема! Вроде рабочий конфиг то! выдаю я компу IP 192,168,2,203 со шлюзом 192,168,2,202 (IP субинтерфейса). Что видит комп! Он видит только субинтерфейс (ура типа победа). Да то что он видит мне не тепло не холодно. Мне нужно человека выпустить в инет. И ACL прописанно и субъинтерфейс сделал, и все порты настроил, и нат указал, а он в инет не идет.
      Кто подскажет что делать?

  • Настройка VLANs и маршрутизации между ними, !*! Signalman, 15:02 , 09-Авг-04 (3)
    Вот смотри. Есть конфиг роутера. Я сделал субинтерфейс
    interface FastEthernet0/0.5
    encapsulation isl 5
    ip address 192.168.2.202 255.255.255.0
    Прописал что ip address 192.168.2.203 может выходить (в ACL).

    !
    version 12.2
    no service pad
    service tcp-keepalives-in
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    no service dhcp
    !
    hostname tyazh-router
    !
    logging queue-limit 100
    enable secret 5 $1$OL1P$G.hecZs0pdW.qCzoVXsNl0
    !
    username 726 password 0 726
    clock timezone GMT 3
    aaa new-model
    !
    !
    aaa authentication ppp default local
    aaa session-id common
    ip subnet-zero
    no ip source-route
    !
    !
    no ip domain lookup
    !
    no ip bootp server
    virtual-profile virtual-template 1
    !
    chat-script Acc AT OK &F1S0=1 OK
    modemcap entry Aceess:MSC=&F1S0=1
    !
    !
    !
    !
    !
    !
    !
    !
    no voice hpi capture buffer
    no voice hpi capture destination
    !
    !
    mta receive maximum-recipients 0
    !
    !
    !
    !
    interface Loopback0
    no ip address
    !
    interface FastEthernet0/0
    no ip address
    no ip redirects
    no ip unreachables
    no ip proxy-arp
    ip accounting access-violations
    no ip mroute-cache
    speed 100
    full-duplex
    no cdp enable
    !
    interface FastEthernet0/0.1
    encapsulation isl 1
    ip address 192.168.0.198 255.255.255.0
    ip access-group 102 in
    no ip redirects
    ip nat inside
    no ip mroute-cache
    traffic-shape rate 700000 16800 16800 1000
    no cdp enable
    !
    interface FastEthernet0/0.2
    encapsulation isl 2
    ip address 62.113.110.66 255.255.255.240
    ip access-group 101 in
    ip nat outside
    no ip mroute-cache
    traffic-shape rate 700000 16800 16800 1000
    no cdp enable
    !
    interface FastEthernet0/0.3
    encapsulation isl 3
    ip address 213.189.196.229 255.255.255.252
    no ip redirects
    no ip mroute-cache
    no cdp enable
    !
    interface FastEthernet0/0.5
    encapsulation isl 5
    ip address 192.168.2.202 255.255.255.0
    ip access-group 102 in
    no ip redirects
    ip nat inside
    no ip mroute-cache
    no cdp enable
    !
    interface Virtual-Template1
    ip unnumbered Async65
    ppp authentication chap
    !
    interface Async65
    ip address 213.189.196.225 255.255.255.252
    no ip redirects
    encapsulation ppp
    no ip mroute-cache
    async mode interactive
    no peer default ip address
    no keepalive
    ppp authentication chap
    !
    ip nat pool zenon 62.113.110.67 62.113.110.76 netmask 255.255.255.240
    ip nat inside source list 99 pool zenon overload
    ip nat inside source static tcp 192.168.0.200 53 62.113.110.77 53 extendable
    ip nat inside source static udp 192.168.0.200 53 62.113.110.77 53 extendable
    ip nat inside source static tcp 192.168.0.200 21 62.113.110.77 21 extendable
    ip nat inside source static udp 192.168.0.200 21 62.113.110.77 21 extendable
    no ip http server
    ip classless
    ip route 0.0.0.0 0.0.0.0 62.113.110.65
    !
    !
    !
    access-list 99 permit 192.168.0.0 0.0.0.255
    access-list 101 permit tcp any any established
    access-list 101 permit tcp any any eq smtp
    access-list 101 permit tcp any any eq 22022
    access-list 101 permit tcp any any eq domain
    access-list 101 permit udp any any
    access-list 101 permit icmp any any packet-too-big
    access-list 101 permit icmp any any echo
    access-list 101 permit icmp any any echo-reply
    access-list 101 permit icmp any any ttl-exceeded
    access-list 101 permit tcp any host 62.113.110.77 eq ftp
    access-list 101 deny   ip any any
    access-list 102 permit tcp host 192.168.2.203 any
    access-list 102 permit udp host 192.168.2.203 any
    access-list 102 permit tcp host 192.168.0.103 any
    access-list 102 permit tcp host 192.168.0.199 any
    access-list 102 permit udp host 192.168.0.199 any
    access-list 102 permit tcp host 192.168.0.200 any eq domain
    access-list 102 permit udp host 192.168.0.200 any eq domain
    access-list 102 permit tcp host 192.168.0.205 any
    access-list 102 permit udp host 192.168.0.205 any
    access-list 102 permit udp any any eq domain
    access-list 102 permit tcp any any eq domain
    access-list 102 permit tcp any any eq smtp
    access-list 102 permit tcp any any eq pop3
    access-list 102 permit tcp any any eq 443
    access-list 102 permit tcp any any eq 22
    access-list 102 deny   tcp any any eq 69
    access-list 102 deny   udp any any eq tftp
    access-list 102 deny   tcp any any eq 4444
    access-list 102 deny   udp any any eq 4444
    access-list 102 deny   tcp any any eq 135
    access-list 102 deny   udp any any eq 135
    access-list 102 deny   tcp any any eq 137
    access-list 102 deny   udp any any eq netbios-ns
    access-list 102 deny   tcp any any eq 138
    access-list 102 deny   udp any any eq netbios-dgm
    access-list 102 deny   tcp any any eq 139
    access-list 102 deny   udp any any eq netbios-ss
    access-list 102 permit tcp host 192.168.0.203 any eq 22022
    access-list 102 permit tcp host 192.168.0.204 any eq 22022
    access-list 102 permit icmp any any packet-too-big
    access-list 102 permit icmp any any echo
    access-list 102 permit icmp any any ttl-exceeded
    access-list 102 deny   ip any any
    access-list 103 deny   ip any any
    no cdp run
    !
    radius-server authorization permit missing Service-Type
    call rsvp-sync
    !
    !
    mgcp profile default
    !
    !
    !
    dial-peer cor custom
    !
    !
    !
    banner login  
    This is a private system.
    Use by unauthorized persons is prohibited.
    All accesses to this service are logged.
    !
    line con 0
    exec-timeout 5 0
    speed 115200
    line aux 0
    exec-timeout 0 0
    modem Dialin
    modem autoconfigure type usr_courier
    no exec
    transport input all
    autoselect ppp
    stopbits 1
    speed 1200
    flowcontrol hardware
    line vty 0 4
    access-class 103 in
    exec-timeout 0 0
    password istel726
    transport input none
    !
    !
    end


    Далее на свичах прописал:
    Свич А. У него в первый порт смотрит ADSL модем во 2 порт смотрит Роутер.

    #sh running-config int fa 0/2
    Building configuration...

    Current configuration : 131 bytes
    !
    interface FastEthernet0/2
    switchport trunk encapsulation isl
    switchport mode trunk
    no ip address
    duplex full
    speed 100
    end

    Далее на Gig порте прописал
    interface GigabitEthernet0/1
    switchport trunk encapsulation isl
    switchport mode trunk
    end


    Свич Б. Он подключен к А свичу через Gig 0/1

    interface FastEthernet0/5
    switchport mode access
    switchport access vlan 5
    spanning-tree portfast
    end
    На 5 порте свича Б висит VLAN 5.
    Соответственно настроен Gig на свиче Б.
    interface GigabitEthernet0/1
    switchport trunk encapsulation isl
    switchport mode trunk
    end


    Так вот делема! Вроде рабочий конфиг то! выдаю я компу IP 192,168,2,203 со шлюзом 192,168,2,202 (IP субинтерфейса). Что видит комп! Он видит только субинтерфейс (ура типа победа). Да то что он видит мне не тепло не холодно. Мне нужно человека выпустить в инет. И ACL прописанно и субъинтерфейс сделал, и все порты настроил, и нат указал, а он в инет не идет.
    Кто подскажет что делать?




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру