Basic settings OpenWRT tutorial series interface

Although you can now access the CLI OP,But can not do anything,To use WEB access OP,We need to give OP to install on your web page,But only if we want toGive OP connected to the network

Topology as follows:

Untitled 7

Configuration

First, let's giveVANA port configurationIPaddress,MakeONAccess to Internet。According to my topology,mineVANPort should be usedDHCPThe most appropriate way

byWEEditor to modifyVANInterface parameters

[warning]
Command is as follows:
vi / cd etc / config / network
[/warning]

As shown below:

Untitled 8

 

[warning]
Enter ifconfig to see the OP's WAN port to obtain IP address
[/warning]

Untitled 10

Look,We get to the address 192.168.1.254

 

Validation and Troubleshooting

uspingone timewww.qq.comTry,Found nowhere,againping 114.114.114.114one time,I found through the。this meansDNShas a problem。As shown below

Untitled 11

Why is this? Let's analyze:

Because the OP's LAN address is 192.168.1.1,And my home router gateway is 192.168.1.1,Both addresses repeat,Therefore, the DNS request to the home router can not be disposed of down interception OP,So there is no DNS。

Solution is simple,The OP LAN port address is set to 192.168.2.0/24 network segment。(Distinguished like。)

Continue to use this command to edit the configuration file,vi /etc/config/network

Untitled 12

[warning]
Note To modify but not wan lan,Do not make mistakes。Then use the reboot command to restart just to make the changes take effect。
[/warning]

Untitled 13

Disable then enable the computer card,Re-acquire IP address。

at this time,I have to get the IP address of the network segment 192.168.2.0/24。

at this time,I have to get the IP address of the network segment 192.168.2.0/24。

This is not on the 192.168.1.1 connected,We want to connect to a new IP address 192.168.2.1

This is not on the 192.168.1.1 connected,We want to connect to a new IP address 192.168.2.1

Now ping www.qq.com pass ~!

Now ping www.qq.com pass ~!

Original article written by LogStudio:R0uter's Blog » Basic settings OpenWRT tutorial series interface

Reproduced Please keep the source and description link:https://www.logcg.com/archives/596.html

About the Author

lucifer

Leave a Reply

Your email address will not be published. Required fields are marked *