Open vswitch 連上 Internet

247 views
Skip to first unread message

Joe Hsu

unread,
Oct 20, 2014, 11:35:17 AM10/20/14
to sdnd...@googlegroups.com
大家好,
  想請問一下 host 是否可以透過 open vswitch 連上Internet ?
我所架設的實驗環境host 連在 安裝open vswitch 機器下都可以互相 ping 成功 但是如果host ping 8.8.8.8 ,open vswitch 就不知道把封包往那裡送? 而無法連上Internet
  請問 open vswitch 有類似 default route gw 的設定嗎?
          

Ping Chun Huang

unread,
Oct 20, 2014, 11:47:55 AM10/20/14
to Joe Hsu, sdnd...@googlegroups.com
hi,

openvswitch 沒有 default gw的概念

你要自己透過 route 指令 add 進去

注意interface要選對

謝謝.


pichuang, Ping-Chun Huang 黃秉鈞


Wireless Internet Laboratory
Computer Center, Department of Computer Science
National Chiao Tung University
> --
> Welcome to http://sdnds.tw/
> ---
> 這是 Google 網上論壇針對「SDNDS-tw」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到 sdnds-tw+u...@googlegroups.com
> 如要在這個群組張貼留言,請傳送電子郵件到 sdnd...@googlegroups.com
> 請前往以下網址造訪這個群組:http://groups.google.com/group/sdnds-tw
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/sdnds-tw/caa6eab4-40b6-43b4-87ae-5a62aa9e98f8%40googlegroups.com
> 如需更多選項,請前往:https://groups.google.com/d/optout

wjhwj...@gmail.com

unread,
Dec 25, 2014, 9:57:42 AM12/25/14
to sdnd...@googlegroups.com, porsch...@gmail.com, pich...@cs.nctu.edu.tw

Hi pichuang,

看到https://gist.github.com/pichuang/9876454关于配置ovs-openwrt,十分赞~

你的意思是说1个lan口配置为连接controller,其余的3个lan口和一个wan口全部设置为static是吧。这样的话再配置ovs网桥的ip和默认网关达到上网的效果,实际连接internet的物理接口可以是3个lan口和一个wan口的任何一个,是这样吗?

然而,我遇到一个问题,环境中的网口只能接受终端dhcp,所以是否需要设置ovs网桥的ip为动态分配呢?那么我是否需要改变其中一个物理接口为dhcp模式,然后用此接口连接internet



在 2014年10月20日星期一UTC+8下午11时47分55秒,Ping Chun Huang写道:

Ping Chun Huang

unread,
Dec 25, 2014, 12:30:52 PM12/25/14
to wjhwj...@gmail.com, sdnd...@googlegroups.com, Joe Hsu, Ping Chun Huang
您好,

# 实际连接internet的物理接口可以是3个lan口和一个wan口的任何一个,是这样吗?
這句話是對的, 只要你有把 port attach 進 ovs bridge 即可

#只能接受终端dhcp
這句話不太理解

# 是否需要设置ovs网桥的ip为动态分配呢?那么我是否需要改变其中一个物理接口为dhcp模式,然后用此接口连接internet

這個可以做 你可以直接試試

謝謝



pichuang, Ping-Chun Huang 黃秉鈞


Wireless Internet Laboratory
Computer Center, Department of Computer Science
National Chiao Tung University


> https://groups.google.com/d/msgid/sdnds-tw/a2cabc97-31fa-4f8e-9f9e-54621cb7c0a7%40googlegroups.com
> 如需更多選項,請前往:https://groups.google.com/d/optout
Reply all
Reply to author
Forward
0 new messages