cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Beginner

Cisco NEXUS 9000 Wake On Lan (howto)

I have wake on lan working on a network with 2 segments, connected with a 2801 router configured to forward broadcasts (udp port 7) from wol-server to wol-client network.

 

 

WOL command from WOL Server Network

-------------------------------------------------------------------------------------------------------------------

WolCmd.exe D4CEFC8F71E5 255.255.255.255 255.255.255.255 7

Wake On Lan signal sent to Mac Address D4CEFC8F71E5 via Broadcast Address 255.255.255.255 on port 7

-------------------------------------------------------------------------------------------------------------------

 

 

WOL package being forwarded from one network to the other

-------------------------------------------------------------------------------------------------------------------

RouterWOL#debug ip udp 

Sep 22 14:04:06.439: UDP: rcvd src=10.10.2.34(1652), dst=255.255.255.255(7), length=110

Sep 22 14:04:06.439: UDP: forwarding packet 255.255.255.255(1652) to 10.10.103.255(7)

Sep 22 14:04:06.439: UDP: forwarding packet 255.255.255.255(1652) to 10.10.103.255(7)

Sep 22 14:04:06.439: UDP: forwarded broadcast 7 from 10.10.2.34 to 255.255.255.255 on FastEthernet0/1

RouterWOL#

-------------------------------------------------------------------------------------------------------------------

 

Router WOL configuration

-------------------------------------------------------------------------------------------------------------------

RouterWOL#show  running-config

Building configuration...

.

interface FastEthernet0/0

 description WOL-ServerNetwork

 ip address 10.10.2.249 255.255.255.0

 ip access-group 122 in

 ip helper-address 10.10.103.255

 duplex auto

 speed auto

interface FastEthernet0/1

 description Wol-ClientNetwork

 ip address 10.10.100.1 255.255.252.0

 ip access-group 123 in

 ip directed-broadcast 110

 duplex auto

 speed auto

ip forward-protocol udp echo

ip access-list extended WolCmdACL

 permit udp any any eq echo log

access-list 110 permit udp host 10.10.2.34 any eq echo log

access-list 122 permit udp host 10.10.2.34 any eq echo log

access-list 122 permit udp any any eq ntp log

access-list 122 permit tcp any any eq 22 log

access-list 123 permit tcp any any eq 22 log

access-list 123 permit icmp any any echo

access-list 123 permit icmp any any echo-reply

-------------------------------------------------------------------------------------------------------------------

 

 

 

 

On the PC I receive the WOL Magic Packet and the computer wakes on.

Here is a sample of the package received by the client PC

-------------------------------------------------------------------------------------------------------------------

  Frame: Number = 180, Captured Frame Length = 144, MediaType = ETHERNET

- Ethernet: Etype = Internet IP (IPv4),DestinationAddress:[FF-FF-FF-FF-FF-FF],SourceAddress:[00-19-E7-91-DC-51]

  - DestinationAddress: *BROADCAST [FF-FF-FF-FF-FF-FF]

     Rsv: (111111..)

     UL:  (......1.) Locally Administered Address

     IG:  (.......1) Group address (multicast)

  - SourceAddress: Cisco Systems 91DC51 [00-19-E7-91-DC-51]

     Rsv: (000000..)

     UL:  (......0.) Universally Administered Address

     IG:  (.......0) Individual address (unicast)

    EthernetType: Internet IP (IPv4), 2048(0x800)

- Ipv4: Src = 10.10.2.34, Dest = 255.255.255.255, Next Protocol = UDP, Packet ID = 11561, Total IP Length = 130

  - Versions: IPv4, Internet Protocol; Header Length = 20

     Version:      (0100....) IPv4, Internet Protocol

     HeaderLength: (....0101) 20 bytes (0x5)

  - DifferentiatedServicesField: DSCP: 0, ECN: 0

     DSCP: (000000..) Differentiated services codepoint 0

     ECT:  (......0.) ECN-Capable Transport not set

     CE:   (.......0) ECN-CE not set

    TotalLength: 130 (0x82)

    Identification: 11561 (0x2D29)

  - FragmentFlags: 0 (0x0)

     Reserved: (0...............)

     DF:       (.0..............) Fragment if necessary

     MF:       (..0.............) This is the last fragment

     Offset:   (...0000000000000) 0

    TimeToLive: 127 (0x7F)

    NextProtocol: UDP, 17(0x11)

    Checksum: 24586 (0x600A)

    SourceAddress: 10.10.2.34

    DestinationAddress: 255.255.255.255

- Udp: SrcPort = 1699, DstPort = Echo(7), Length = 110

    SrcPort: 1699

    DstPort: Echo(7)

    TotalLength: 110 (0x6E)

    Checksum: 35915 (0x8C4B)

  - UDPPayload: SourcePort = 1699, DestinationPort = 7

     UDPPayloadData: Binary Large Object (102 Bytes)

-------------------------------------------------------------------------------------------------------------------

 

 

…And everything is working fine…

 

Now I need to replace the RouterWOL (Cisco C2801) by a C9504 Cisco NEXUS, but unfortunately it seems that NXOS (ver 6.1(2)I3(2)) does not support some functions like;

ip forward-protocol udp echo

ip helper-address 10.10.103.255

 

Any Ideas on how I can transfer the UDP redirect/forward from the Router to the NEXUS?

 

Regards

Nuno

Who Me Too'd this topic