Skip to content

Commit

Permalink
add kni virtural nic config
Browse files Browse the repository at this point in the history
  • Loading branch information
jfb8856606 authored May 23, 2017
1 parent a6a17f2 commit 8e26089
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ Currently, besides authorized DNS server of DNSPod, there are various products i
make
make install

 If KNI is enabled in the configuration file, you should create a virtual NIC after F-Stack started, and set the ipaddr, netmask, mac addr, route table, etc. These addrs must be same with F-Stack.

If you don't have another management port, you should execute a script like this.

./start.sh -b /usr/local/nginx_fstack/sbin/nginx -c config.ini
   sleep 10
  ifconfig veth0 <ipaddr> netmask <netmask>  broadcast <broadcast> hw ether <mac addr>
  route add -net 0.0.0.0 gw <gateway> dev veth0
   # route add -net ... # other route rules

## Nginx Testing Result

Expand Down

0 comments on commit 8e26089

Please sign in to comment.