The present invention provides a media gateway device and a method for forwarding data frames. The media gateway device comprises: a master module, a switch module, a relay access module and a media resource module; the switch module comprises three independent Virtual Local Area Networks (VLANs), i.e., a first VLAN, a second VLAN and a third VLAN, respectively; the media resource module is connected to the switch module through the second VLAN, and the switch module is connected to an external Internet Protocol (IP) packet network through the third VLAN; the media gateway device further comprises a network layer static routing table. By using the media gateway device and the method for forwarding data frames according to the present invention, the number of the external interfaces of the media gateway device can be reduced, and the interface of the switch module can be managed by the VLAN.