跳到主要內容

Hyper-V設定VLAN

~~考題~~


題目如下:
Hyper-V的Server,裡面有2台VM(原本還有做AD Domain,DFS,DNS,在這裡就先略過),分別為Win2012與Win7,都是全新安裝的狀態 ,而Hyper-V的Server接在L2 Switch的FA 0/1,要做以下設定

*VM1: Windows 2012 R2(DHCP)
IP:192.168.199.100/24
GW:192.168.199.254
DHCP Server 發放IP範圍 192.168.200.30~192.168.200.100

*VM2: Windows7(自動取得IP)
要取得192.168.200.0/24網段的IP


Switch:
L3 Switch要做VLAN的Routing
反正最後就是要Win7可以取得IP,並且Ping到Server


解答:
L2 Switch設定:
新增VLAN 199,200
要確認Port FA 0/1, FA 0/24 有沒有形成Trunk

L3 switch設定: (中間有一些設定已略過)
Core-3750# show running-config
Building configuration...

Current configuration : 4114 bytes
!
-----------中間略過--------------------------
!
!
!
!
no aaa new-model
switch 1 provision ws-c3750g-24t
system mtu routing 1546
ip routing
no ip domain-lookup
!
vlan internal allocation policy ascending
!
!
!
!
interface GigabitEthernet1/0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
-----------中間略過--------------------------
!
interface Vlan1
 no ip address
!
interface Vlan199
 ip address 192.168.199.254 255.255.255.0
 ip helper-address 192.168.199.100
!
interface Vlan200
 ip address 192.168.200.254 255.255.255.0
 ip helper-address 192.168.199.100
!

Hyper-V 網路的設定:





在VM1的2012 Server的網路介面上,設定VLAN199

在VM2 Win7Pro的網路介面卡,設定VLAN200
VM1的DHCP設定就不說明了~



後記:
他題目的重點在於L3 Switch的Routing功能,還有Hyper-V裡面VM設定VLAN

留言

  1. 網誌管理員已經移除這則留言。

    回覆刪除
  2. If you're trying to lose kilograms then you need to try this brand new personalized keto plan.

    To produce this service, licenced nutritionists, fitness couches, and top chefs have united to provide keto meal plans that are useful, decent, price-efficient, and delicious.

    Since their grand opening in 2019, hundreds of clients have already remodeled their figure and well-being with the benefits a proper keto plan can provide.

    Speaking of benefits; in this link, you'll discover eight scientifically-certified ones provided by the keto plan.

    回覆刪除

張貼留言

這個網誌中的熱門文章

HP A5120 Switch 基本設定

沒用過HP的Switch,指令跟Cisco完全不同,花了一些時間熟悉~ 1.啟動Spanning-Tree,預設沒有開啟 (黑色粗體是我敲的指令) <HP> system-view System View: return to User View with Ctrl+Z. [HP] stp enable [HP] %Apr 26 12:03:59:826 2000 HP MSTP/6/MSTP_ENABLE: STP is now enabled on the device. %Apr 26 12:03:59:918 2000 HP MSTP/6/MSTP_FORWARDING: Instance 0's GigabitEthernet1/0/17 has been set to forwarding state. %Apr 26 12:04:00:068 2000 HP MSTP/6/MSTP_DETECTED_TC: Instance 0's GigabitEthernet1/0/17 detected a topology change. #Apr 26 12:04:00:208 2000 HP MSTP/1/PFWD: hwPortMstiStateForwarding: Instance 0's Port 0.9437200 has been set to forwarding state! 2.DHCP Snooping   (黑色粗體是我敲的指令) 假設我的DHCP Server接在24 Port,其他Port不允許有DHCP Server <HP> system-view System View: return to User View with Ctrl+Z. [HP] dhcp-snooping  DHCP Snooping is enabled. [HP] interface GigabitEthernet 1/0/24 [HP-GigabitEthernet1/0/24 ]dhcp-snooping trust 若是沒有Port 設成dhcp-snooping trust,那麼這台Switch就沒有Client可以從DHCP Serv...

2台 Vigor 2920建立 LAN To LAN VPN (IPsec)

我有兩台Vigor 2920,環境如下: Vigor B 撥出 LAN:192.168.1.0/24 Vigor A 撥入 LAN:172.16.1.0/24 設定如下: Vigor B設定 Vigor A設定 詳細設定請參考官網 http://www.draytek.com/index.php?option=com_k2&view=item&id=2666&Itemid=264&lang=tw

Draytek Vigor 2927

其實心中一直感覺用了十年的Vigor 2920n會掛掉,因為先前也有一台2920n壞過,所以心中也有個底,但突然壞了也真讓人心驚驚! 其實最近都在用Unifi的設備,但考量目前的工作環境與網路需求,就直接更換最新的Vigor 2927,雖然2920n的備份檔不能直接倒回去,不過之前的設定參數都有抓圖下來,所以很快就把設定設回去,這也算是用習慣Draytek的好處~ 下一篇會說明怎麼建立Unifi Dream Machine Pro與Vigor 2927的Site To Site VPN。