This topic has been archived. It cannot be replied.
-
枫下家园 / 电脑电信 / IT大佬看看这个问题: 正在做一个项目需要把我的手提电脑连到工作地方的一个switch的tagged port上,这个port有3个VLAN,所以我在电脑里配置了三个VLAN这样可以同时链接到每个VLAN内部设备。但是这样的话我电脑拿回家后就无法通过有线链接到我家路由器,因为家里网络没有用vlan。我只能删除电脑上的vlan后才能连上家里网络。在不对家里网络进行更改的情况下有没有办法两全其美?
-newnews1(wu);
2018-7-15
{257}
(#11622868@0)
-
单位里和家里上网时,手提电脑所拿到的IP是固定的还是活动的? 若单位里分配的是固定IP,跟家里路由器所分配的不一样,那就得重新设定.....但这只是其中一个可能的原因,也许还有别的原因.....
-see1see(Isee);
2018-7-15
(#11623395@0)
-
家里是DHCP,工作场所是固定ip
-newnews1(wu);
2018-7-16
(#11623618@0)
-
那你可以在家里用时试试将手提电脑的IP改设为固定IP,但是,如果家里的路由器所设定的网段IP范围与你单位所设的不一样,那就没用,除非修改一下家里路由器的设置,将网段IP范围设定为能cover所需的IP.....
-see1see(Isee);
2018-7-16
(#11623632@0)
-
没用的。除非家用路由器也设VLAN,不过不想搞得这么麻烦
-newnews1(wu);
2018-7-17
(#11624903@0)
-
untagged 即 tag id=0. 你在电脑配置一个 VLAN tag id=0 应可访问你家 untagged 网络。
-w4b(w4b);
2018-7-15
(#11623406@0)
-
no. A home router/switch which does not support VLAN does not understand tagged packet at all, no matter the vlan id is 0 or else. It will not remove the 802.1q part from the header, so this machine can not talk to any other machines in the network.
-eeryv(eeryu);
2018-7-15
(#11623490@0)
+1
-
你的意思是无解了?
-newnews1(wu);
2018-7-16
(#11623619@0)
-
写个script backup 3个vlan, 再写一个delete 的,每天回家跑一下script,上班又跑一下
-sxffff(lookingforjob);
2018-7-16
(#11623620@0)
-
在家可以用wifi或再加个外置网卡啊
-zhengsean(IT大叔);
2018-7-16
(#11623633@0)
-
正因为我需要使用有线才讨论有线连接的问题。WiFi当然连的上,再加一块网卡就算了
-newnews1(wu);
2018-7-17
(#11624902@0)
-
俺倒是觉得用外置网卡是个不错的解决方案,只需占用一个USB口而已,又不贵,网上买有的才几刀的东东.....
-see1see(Isee);
2018-7-17
(#11624911@0)
-
那还不如用WIFI呢,一般情况下家里就用WIFI,需要速度的时候所以才用有线,
-newnews1(wu);
2018-7-17
(#11624925@0)
-
http://www.tomshardware.com/faq/id-1926331/alternate-address-configuration.html
-kking(捣蛋);
2018-7-16
(#11623855@0)
-
这个方法不合适,因为switch那里的是tagged port
-newnews1(wu);
2018-7-17
(#11624906@0)
-
同学们要搞清的是在 osi 7层协议里vlan 是第二层链路层协议,ip是第三层网络层协议。vlan不懂ip只管port,这里和ip设置无关
-w4b(w4b);
2018-7-17
(#11624921@0)
-
不是大佬,就是奇怪为什么在家里你要用有线而不用无线?两个不同的网卡,不就不存在你纠结的问题了吗?
-lifewillbebetter(XYY);
2018-7-16
(#11624728@0)
+1
-
正因为我需要使用有线才讨论有线连接的问题。WiFi当然连的上
-newnews1(wu);
2018-7-17
(#11624901@0)
-
你所说的在电脑上配置了3个vlan是不是在tcp/ip v4的advanced setting里面设置了3个不同的IP/Subnet? 我个人觉得你说的switch port有3个vlan应该是不对的,如果switch port同时tag 3个vlan那就是属于trunk port, 终端电脑接上是不工作的。你应该不需要设置你的网卡,直接dhcp就可以。是Network Admin教你这么做的么?
-winterfish(潜水鱼(\ (•◡•) /));
2018-7-16
{150}
(#11624779@0)
-
哈哈你out了,电脑网卡是可以配置VLAN的,看图。
-newnews1(wu);
2018-7-17
{59}
(#11624899@0)
-
有没有试验 vlan id = 0? 结果?
-w4b(w4b);
2018-7-17
(#11624907@0)
-
还没。明天试试看
-newnews1(wu);
2018-7-17
(#11624909@0)
-
其实,你可以将你的具体需求跟单位的网管提一下,人家说不准就给你一个好的建议就轻松的解决了,因为这里的网友未必能清楚你的具体情况,只好盲人摸象似的...
-see1see(Isee);
2018-7-17
(#11624914@0)
-
这事情跟网管一点关系都没有哦
-newnews1(wu);
2018-7-17
(#11624924@0)
-
咋没关系?你若问了,人家可能就是像上面的w4b大侠那样建议你设定 tag id=0就搞定了
-see1see(Isee);
2018-7-17
(#11624954@0)
-
我说没关系就是压根儿没什么网管
-newnews1(wu);
2018-7-17
(#11625083@0)
-
你点醒我了,搞定了
-newnews1(wu);
2018-7-17
(#11624927@0)
-
Good good
-w4b(w4b);
2018-7-17
(#11624969@0)
-
涨知识了,谢谢,以前从来没用过这个功能,因为电脑本身不需要设置多vlan就可以访问别的subnet。你这个switch要么是二级access switch 要么就是ACL block 了vlan 之间的相互访问。
-winterfish(潜水鱼(\ (•◡•) /));
2018-7-17
(#11625254@0)
-
搞定了。谢谢大家出主意。其实就是再在电脑里添加一个 untagged VLAN就好了。看图
-newnews1(wu);
2018-7-17
{59}
(#11624930@0)