zhangying 发表于 2008-5-25 00:08:57

ROS+三层交换机,自动分配IP,PPPOE设置成功

ROS+三层交换机,自动分配IP,PPPOE设置成功,但是有一个问题:这个结构有一个问题:当工作站不进行PPPOE拨号时各工作站访问SERVER可以通过三层交换机的路由,但是拨号之后就会通过ROS的路由,这样ROS的压力太大,各位有谁给个详细的解决办法

胡天胡地 发表于 2008-5-25 08:29:17

PPPOE就是这种原理,所有数据包,都要通过PPPOE SERVER
除非你不做PPPOE SERVER

karthy 发表于 2008-6-16 22:03:05

拨号不成功哦,

我的网络结构也是这样的,用的3560交换机但为什么就是不行呢?
2口为vlan20 ip为192.168.20.1,3口为vlan30 ip 为192.168.30.1,4口为vlan40 ip为192.168.40.1,
各vlan间做ip routing,
有一条默认路由 ip route 0.0.0.0 0.0.0.0 192.168.0.1,
1口做trunk,命令为 switchporttrunkenc dot1q
switchport mode trunk

但各vlan就是不能拨通1口的rospppoe服务器,这是为什么呢?

parphy 发表于 2008-6-17 00:15:33

拿3层交换机当2层用,典型的伪三层模式

[ 本帖最后由 parphy 于 2008-6-17 00:16 编辑 ]

xbin2002 发表于 2008-6-17 12:33:38

原帖由 karthy 于 2008-6-16 22:03 发表 http://bbs.routerclub.com/images/common/back.gif
我的网络结构也是这样的,用的3560交换机但为什么就是不行呢?
2口为vlan20 ip为192.168.20.1,3口为vlan30 ip 为192.168.30.1,4口为vlan40 ip为192.168.40.1,
各vlan间做ip routing,
有一条默认路由 ip route ...
你把默认路由去掉 试试
客户端不用给IP

jiansuper 发表于 2008-6-17 18:52:49

个人觉得只有搞小区的才需要PPPOE Server 中小企业都不需要,用域加VPN做的活的多

karthy 发表于 2008-6-17 19:44:37

有没有哪位能帮下小弟改下交换机的配置,不胜感激,谢谢。

配置如下:

interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
switchport access vlan 20
!
interface GigabitEthernet0/3
switchport access vlan 30
!
interface GigabitEthernet0/4
switchport access vlan 40
!
interface GigabitEthernet0/5
switchport access vlan 50
!
interface GigabitEthernet0/6
switchport access vlan 20
!
interface GigabitEthernet0/7
switchport access vlan 70
!
interface GigabitEthernet0/8
!
interface GigabitEthernet0/9
!
interface GigabitEthernet0/10
!
interface GigabitEthernet0/11
!
interface GigabitEthernet0/12
!
interface GigabitEthernet0/13
!
interface GigabitEthernet0/14
!
interface GigabitEthernet0/15
!
interface GigabitEthernet0/16
!
interface GigabitEthernet0/17
!
interface GigabitEthernet0/18
!
interface GigabitEthernet0/19
!
interface GigabitEthernet0/20
!
interface GigabitEthernet0/21
!
interface GigabitEthernet0/22
!
interface GigabitEthernet0/23
!
interface GigabitEthernet0/24
!
interface GigabitEthernet0/25
!
interface GigabitEthernet0/26
!
interface GigabitEthernet0/27
!
interface GigabitEthernet0/28
!
interface Vlan1
ip address 192.168.0.2 255.255.255.0
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0
!
interface Vlan30
ip address 192.168.30.1 255.255.255.0
!
interface Vlan40
ip address 192.168.40.1 255.255.255.0
!
interface Vlan50
ip address 192.168.50.1 255.255.255.0
!
interface Vlan70
ip address 192.168.70.1 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip http server
ip http secure-server

parphy 发表于 2008-6-17 20:33:14

现在看,cisco 3560G各VLAN的配置是没问题的,配置错误应该在ROS上,把ros的配置贴出来看看吧
另外
switchporttrunkenc dot1q
switchport mode trunk
应该配在g0/1上,你给的配置并没有,到底哪去了?

[ 本帖最后由 parphy 于 2008-6-17 20:37 编辑 ]

karthy 发表于 2008-6-18 21:16:22

附上3650G的全部配置,ros接在gi0/1口。谢谢!

ros就是按网上的教程做了个pppoe服务器,做了默认路由,做了pool地址池172.0.0.1-172.0.0.254,ros的lan地址为192.168.0.1 255.255.0.0,其他没有别的设置了,用一交叉线网线pc-ros能拨号成功。


Building configuration...

Current configuration : 5684 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Switch
!
enable secret 5 $1$WJps$yo.
enable password 7 075C265
!
no aaa new-model
ip subnet-zero
ip routing
ip dhcp excluded-address 192.168.50.240 192.168.50.254
ip dhcp excluded-address 192.168.20.0 192.168.20.20
ip dhcp excluded-address 192.168.50.0 192.168.50.20
ip dhcp excluded-address 192.168.30.0 192.168.30.20
ip dhcp excluded-address 192.168.40.0 192.168.40.20
ip dhcp excluded-address 192.168.100.0 192.168.100.20
--More--       ip dhcp excluded-address 192.168.200.1 192.168.200.20
!
ip dhcp pool vlan50
   network 192.168.50.0 255.255.255.0
   dns-server 192.168.0.1
   default-router 192.168.50.1
   lease 30
!
ip dhcp pool vlan20
   network 192.168.20.0 255.255.255.0
   default-router 192.168.20.1
   dns-server 192.168.0.1
   lease 30
!
ip dhcp pool vlan30
   network 192.168.30.0 255.255.255.0
   default-router 192.168.30.1
   dns-server 192.168.0.1
   lease 30
!
ip dhcp pool vlan40
   network 192.168.40.0 255.255.255.0
   default-router 192.168.40.1
--More--          dns-server 192.168.0.1
   lease 30
!
ip dhcp pool vlan100
   network 192.168.100.0 255.255.255.0
   default-router 192.168.100.1
   dns-server 192.168.0.1
   lease 10
!
ip dhcp pool vlan200
   network 192.168.200.0 255.255.255.0
   default-router 192.168.200.1
   dns-server 192.168.0.1
   lease 30
!
!
!
!
!
!
no file verify auto
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
interface GigabitEthernet0/1
switchporttrunkenc dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface GigabitEthernet0/3
switchport access vlan 30
!
interface GigabitEthernet0/4
switchport access vlan 40
!
interface GigabitEthernet0/5
switchport access vlan 50
--More--       !
interface GigabitEthernet0/6
!
interface GigabitEthernet0/7
switchport access vlan 70
!
interface GigabitEthernet0/8
switchport access vlan 30
!
interface GigabitEthernet0/9
switchport access vlan 40
!
interface GigabitEthernet0/10
switchport access vlan 50
!
interface GigabitEthernet0/11
!
interface GigabitEthernet0/12
!
interface GigabitEthernet0/13
!
interface GigabitEthernet0/14
!
--More--       interface GigabitEthernet0/15
!
interface GigabitEthernet0/16
!
interface GigabitEthernet0/17
!
interface GigabitEthernet0/18
!
interface GigabitEthernet0/19
!
interface GigabitEthernet0/20
switchport access vlan 100
!
interface GigabitEthernet0/21
!
interface GigabitEthernet0/22
switchport access vlan 200
!
interface GigabitEthernet0/23
!
interface GigabitEthernet0/24
!
interface GigabitEthernet0/25
--More--       !
interface GigabitEthernet0/26
!
interface GigabitEthernet0/27
!
interface GigabitEthernet0/28
!
interface Vlan1
ip address 192.168.0.3 255.255.255.0
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0
!
interface Vlan30
ip address 192.168.30.1 255.255.255.0
!
interface Vlan40
ip address 192.168.40.1 255.255.255.0
!
interface Vlan50
ip address 192.168.50.1 255.255.255.0
!
interface Vlan70
--More--        ip address 192.168.70.1 255.255.255.0
!
interface Vlan100
ip address 192.168.100.1 255.255.255.0
!
interface Vlan200
ip address 192.168.200.1 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip http server
ip http secure-server!
!
!
control-plane
!
!
line con 0
password 7 15410C1
line vty 0 4
password 7 03575C1B
login
line vty 5 15
password 7 03575C1B
login
!
end

[ 本帖最后由 karthy 于 2008-6-18 21:18 编辑 ]

zhangying 发表于 2008-6-19 01:26:44

原帖由 parphy 于 2008-6-17 00:15 发表 http://bbs.routerclub.com/images/common/back.gif
拿3层交换机当2层用,典型的伪三层模式
不拨号时就是三层模式了。

ljc_168 发表于 2008-6-19 16:29:42

这样,以端口来划VLAN,这样就可以了,如果想用PPPOE不要以IP来划VLAN

karthy 发表于 2008-6-19 20:06:54

关键是现在pppoe不能拨通啊?!

ros 接在gi0/1口,已经做了trunk 各vlan也已经做了ip routing,各vlan可以用ip访问了,各vlan也可以ping通gi0/1的ros,但拨号就是拨不通,在拨号上也加上ros的pppoe服务器的服务器名pppoe,但就是不通,显示“正在拨ppppoe....."。

xywsk 发表于 2008-6-20 23:04:19

回复 12# 的帖子

先学习下原理吧,pppoe是二层协议,不能通过三层网关的,要隔离各vlan的pppoe广播包,ros也要做802.1Q vlan,与三层交换机做trunk连接,这样既能在不拨号时交换机有三层功能,各vlan也能pppoe拨号,不过ros也要在各个802.1Q vlan上做pppoe接口服务,你可以学习一下楼主的拓扑图。楼主的问题可以通过拨号软件更改路由表解决。

[ 本帖最后由 xywsk 于 2008-6-20 23:07 编辑 ]

parphy 发表于 2008-6-22 11:01:03

原帖由 xywsk 于 2008-6-20 23:04 发表 http://bbs.routerclub.com/images/common/back.gif
先学习下原理吧,pppoe是二层协议,不能通过三层网关的,要隔离各vlan的pppoe广播包,ros也要做802.1Q vlan,与三层交换机做trunk连接,这样既能在不拨号时交换机有三层功能,各vlan也能pppoe拨号,不过ros也要在各个8 ...

9494,这个才对嘛

sund 发表于 2008-6-24 11:27:39

原帖由 xywsk 于 2008-6-20 23:04 发表 http://bbs.routerclub.com/images/common/back.gif
先学习下原理吧,pppoe是二层协议,不能通过三层网关的,要隔离各vlan的pppoe广播包,ros也要做802.1Q vlan,与三层交换机做trunk连接,这样既能在不拨号时交换机有三层功能,各vlan也能pppoe拨号,不过ros也要在各个8 ...
这个是对的!你ros上也要做VLAN每个VLAN都要建一个pppoe sever
页: [1] 2
查看完整版本: ROS+三层交换机,自动分配IP,PPPOE设置成功