Re: using multiple interfaces for same Network Card

看板FB_current作者時間12年前 (2013/04/27 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/12 (看更多)
On 12/03/2013 10:41, Yasir hussan wrote: > Thanks for notic but all the elebration was for make alias on one interface > but i want to have multiple interface, i can no where that some one would > have tring to creating new interfaces and using them, or may be i am > missing something, just send its solution if have, solution should be for Sorry, we're not understanding you very well. If you have a network card with several ethernet sockets on it, then the OS will already present you with an interface per socket. That's pretty obvious, so I guess that's not what you're really after. Do you mean you want to use VLans? (virtual local area networks) -- that involves creating what are effectively separate virtual interfaces, one for ech vlan, all based on the same physical interface. Note: you need support and configuration for this in you networking switch gear. However, to configure vlan interfaces on FreeBSD, edit /etc/rc.conf to add first a setting to show what vlan interfaces you want to attach to your physical interface: vlans_em0="vlan101 vlan102 vlan107" Then you can set the vlan tag on creation of each clan by adding: create_args_vlan101="vlan 101" create_args_vlan102="vlan 102" create_args_vlan107="vlan 107" plus you'll need to set up IP addresses on the new vlan interfaces exactly as you would for a physical interface/ See vlan(4) for more detail. Cheers, Matthew _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUsBbG4 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUsBbG4 (FB_current)