LINUX服务器双网卡设置问题
有一台服务器,两张网卡,网卡1要通过一个交换机连接外网,如IP192.168.45.180、掩码:255.255.255.0,网关192.168.45.254,网卡2要通...
有一台服务器,两张网卡,网卡1要通过一个交换机连接外网,如IP 192.168.45.180 、掩码:255.255.255.0 ,网关192.168.45.254,网卡2要通过另一台交换机连接内网,如IP192.168.1.2 ,掩码255.255.0.0 ,不设置网关,需要和 192.168.0-4段的设备连接,为了防止冲突,已经把192.168.0.0,192.168.1.0,192.168.2.0,192.168.3.0,做了VLAN,请问如何应该配置服务器
展开
2017-06-08
展开全部
linux系统配置双网卡:$>./ifconfigeth1Linkencap:EthernetHWaddr00:13:46:77:48:ACinetaddr:219.148.64.28Bcast:219.148.64.255Mask:255.255.255.192inet6addr:fe80::213:46ff:fe77:48ac/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:5486793errors:0dropped:0overruns:0frame:0TXpackets:4236830errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:888757239(847.5Mb)TXbytes:2411899947(2300.1Mb)Interrupt:177Baseaddress:0xc400eth2Linkencap:EthernetHWaddr00:04:23:BC:B0:EEinetaddr:192.168.188.108Bcast:192.168.188.255Mask:255.255.255.0inet6addr:fe80::204:23ff:febc:b0ee/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:5716903errors:0dropped:0overruns:0frame:0TXpackets:5108832errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:2507878307(2391.6Mb)TXbytes:883953795(843.0Mb)Baseaddress:0xbc00Memory:fc5e0000-fc600000eth2:0Linkencap:EthernetHWaddr00:04:23:BC:B0:EEinetaddr:192.168.109.3Bcast:192.168.109.255Mask:255.255.255.0UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1Baseaddress:0xbc00Memory:fc5e0000-fc600000路由配置如下:$>./route-nKernelIProutingtableDestinationGatewayGenmaskFlagsMetricRefUseIface219.148.64.00.0.0.0255.255.255.192U000eth1192.168.118.0219.148.64.1255.255.255.0UG000eth1192.168.109.00.0.0.0255.255.255.0U000eth2192.168.188.00.0.0.0255.255.255.0U000eth2127.0.0.00.0.0.0255.0.0.0U000lo0.0.0.0219.148.64.10.0.0.0UG000eth1
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
Storm代理
2023-06-05 广告
2023-06-05 广告
StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,IP...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询