How can add a new wireless hotspot

My home network diagram:openwrt installed in pc1, plugged a dual ports wired network card in pc1's pci slot,one port connected to pc2.

I want to connect a wireless router to another port of the dual ports wired network card.

internet --> optical modem --> in : network card built in mother board (pc1)       
                           --> out1 :  connect to pc2
                           --> out2 :  connect to a wireless router

How to connect the cable between port2 and wireless router, then set config file in /etc/config/network for a hotspot?

Or put the router between pc1 and pc2, use LAN ports.

Assume the openwrt in my pc1 is the main router,and the router to create hotspot is the second router.
I have set all required in the bridged access point which is the second router:

ip address is static :192.168.12.2
gateway : 192.168.12.1
dns server: 192.168.12.1
netmask: 255.255.255.0

Reboot pc1 and pc2.
Wired network in pc2 is in good status, i can't get wireless hotspot.
Show my config in the main router which is openwrt in pc1:

cat  /etc/config/network

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fdf5:b64b:e949::/48'

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0'
	option proto 'static'
	option ipaddr '192.168.12.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config interface 'wan'
	option _orig_ifname 'eth0.2'
	option _orig_brdge 'false'
	option proto 'pppoe'
	option username 'xxxx'
	option password 'xxxx'
	option ipv6 'auto'
	option ifname 'eth2'

Should i add a new interface 'lan' such as below in the main router's setting?

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0'  ?  how to write the argument
	option proto 'static'
	option ipaddr '192.168.12.2'
	option netmask '255.255.255.0'

you can add it through Network->Interfaces->Add new interface.

Solved,i can connect the new wireless hotspot with my android phone.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.