首先说明一下为什么我们选择使用network,而不是NetworkManager进行网络管理。公司产品是自己的云计算平台,在网络管理部分使用的是openvswitch,NetworkManager可以使用nm-openvswitch进行间接管理ovs,但是其中有很多无法设置的部分,并且管理ovs初始化及后续功能使用scripts是相对容易的,另外对原network的管理模式比较清楚,故综合以上我们选择舍弃NetworkManager的优势,而选择更传统的network进行管理。
在fedora中其实更改起来比较简单,先说一下整体要点:
- 安装传统network管理包network-scripts-teamd
- 设置network为随系统启动
- 设置NetworkManager不随系统启动
- 重启服务器即可
1 安装network-scripts-teamd
# dnf install network-scripts-teamd
2 设置network为随系统启动
# systemctl enable network
3 设置NetworkManager不随系统启动
# systemctl disable NetworkManager
4 重启服务器
# reboot
5 验证
[root@localhost ~]# systemctl status network ● network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; generated) Active: active (exited) since Wed 2020-07-08 11:52:02 EDT; 7h left Docs: man:systemd-sysv-generator(8) Process: 669 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS) CPU: 438ms 7月 08 11:51:58 localhost.localdomain network[669]: [46B blob data] 7月 08 11:52:02 localhost.localdomain NET[950]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf 7月 08 11:52:02 localhost.localdomain network[669]: [42B blob data] 7月 08 11:52:02 localhost.localdomain systemd-sysctl[967]: Not setting net/ipv4/conf/all/rp_filter (explicit setting exists). 7月 08 11:52:02 localhost.localdomain systemd-sysctl[967]: Not setting net/ipv4/conf/default/rp_filter (explicit setting exists). 7月 08 11:52:02 localhost.localdomain systemd-sysctl[967]: Not setting net/ipv4/conf/all/accept_source_route (explicit setting exists). 7月 08 11:52:02 localhost.localdomain systemd-sysctl[967]: Not setting net/ipv4/conf/default/accept_source_route (explicit setting exists). 7月 08 11:52:02 localhost.localdomain systemd-sysctl[967]: Not setting net/ipv4/conf/all/promote_secondaries (explicit setting exists). 7月 08 11:52:02 localhost.localdomain systemd-sysctl[967]: Not setting net/ipv4/conf/default/promote_secondaries (explicit setting exists). 7月 08 11:52:02 localhost.localdomain systemd[1]: Started LSB: Bring up/down networking.
[root@localhost ~]# systemctl status NetworkManager ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:NetworkManager(8)
完成
PS:
如果需要增加openvswitch支持,需要安装openvswitch和network-scripts-openvswitch
# dnf install openvswitch network-scripts-openvswitch
Very educating story, saved your site for hopes to read more! Avril Douglass Evetta
Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. Nunc feugiat mi a tellus consequat imperdiet. Vestibulum sapien. Proin quam. Etiam ultrices. Raf Symon Plante
Hi mates, its wonderful paragraph about cultureand completely explained, keep it up all the time. Kristel Elwin Jennee
Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog? My blog site is in the exact same area of interest as yours and my visitors would certainly benefit from some of the information you present here. Please let me know if this ok with you. Thanks a lot!| Arline Gaile Eudoxia
What a information of un-ambiguity and preserveness of valuable know-how about unpredicted emotions. Judye Berkie Whalen
There is definately a great deal to learn about this subject. I love all the points you made. Dolores Heindrick Erhart
Hurrah! Finally I got a blog from where I know how to truly obtain valuable information concerning my study and knowledge. kisne.goodwomenprizz.be/map2.php billig pool intex Charleen Hendrik Adabel
I love how inspiring that is. I am looking for a job and that really helped. Kipp Sauncho Vena
Excellent post. I am dealing with many of these issues as well.. Carlene Ariel Trelu Fancy Geoff Porty
Fastidious answers in return of this query with real arguments and telling the whole thing regarding that.| Ellissa Brandyn Polloch
really good article, i absolutely love this internet site, keep it Athene Ricky Shaff
Agreed, no medication or treatment should cost that much. Allie Travis Piscatelli
Indeed it was shameful, Laurie, and demonstrated the breadth of antisemitism. Thanks very much. Dot Quintin Pich
Can someone make a video about how to apply this english patch? Caralie Waverley Lesley
I was able to fund good advice from your blog articles. Jordanna Mathew Dubenko Berte Sergio Mozart
Good post! We will be linking to this particularly great content on our site. Keep up the good writing. Bethany Amory Magdalena
I need to to thank you for this good read!! I certainly loved every little bit of it. Dosi Anderson Harrietta Merilyn Arney Galen
Highly energetic blog, I liked that a lot. Will there be a part 2? Lidia Jeff Bulley
God is in all of us and I call it love. Know that you are loved Em. Maddy Baillie Shanda
Everyone loves it when individuals come together and share views. Great site, continue the good work! Dosi Franky Shiekh
Paragraph writing is also a fun, if you be familiar with afterward you can write otherwise it is difficult to write. Cinda Gibbie Shaylynn
Great post. I am facing a few of these issues as well.. Ariana Tarrance Erving
Your style is really unique in comparison to other folks I have read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just book mark this blog. Onida Conway Jessika
What about siblings? I have two brothers who served in the army. My dad also served in the Navy during WWII but he has passed on without joining USAA. If my brothers joined, could I join? Marian Ulrick Tacye
This was a really wonderful article. Many thanks for providing this information. Shirley Noble Nani
Skyking, Skyking, this message is your next bit of information. Feel free to message the agency at your convenience. No further information until next transmission. This is broadcast #8001. Do not delete. Abby Davin Trevar
Good write-up. I absolutely love this website. Thanks! Lisha Emanuel Dorn
Selamat malam pak, mohon maaf izin bertanya untuk jawabannya dikirimkan via email ya pak? terimakasih sebelumnya pa.. Helsa Pieter Rawdan
I could not refrain from commenting. Well written! Hedwiga Olivier Shanks
Very revealing bless you, I do think your current audience might want a whole lot more content such as this continue the excellent work. Natasha Husein Katonah Brenna Burk Chappie
Do you have a spam problem on this site; I also am a blogger, and I was curious about your situation; we have developed some nice methods and we are looking to swap methods with others, please shoot me an e-mail if interested.| Kathy Brant Eldrida
Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you can do with a few pics to drive the message home a little bit, but other than that, this is magnificent blog. An excellent read. I will definitely be back. Lavinia Faulkner Klecka
Cras posuere, quam sed gravida vulputate, nisi sem auctor risus, vel malesuada ante arcu in nisl. Vestibulum eu ultrices ipsum. Vivamus tristique vehicula massa. Aliquam blandit cursus metus. Wenona Elmo Olivette
Great post Anna. Glad you continue to search for answers! Adorne Gawain Blondy
Having read this I believed it was very enlightening. I appreciate you spending some time and energy to put this information together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worth it! Alexandrina Hazlett Andrej
internet visitors, its really really fastidious paragraph on building up new webpage.| Hynda Farlay Carlin
Дальше детально разберем, как работать с платформой, поскольку здесь есть набор особенностей, какие необходимо принимать во внимание. Поэтому этапами рассмотрим вопрос работы с платформой, покупку товаров и их продажу. Независимо от того, для чего вы зашли на рабочее зеркало гидры, ресурс потребует процедуры регистрации для выполнения действий.
Everything is very open with a very clear clarification of the challenges. It was definitely informative. Your website is extremely helpful. Thank you for sharing! Shandy Perice Hedley
This piece of writing provides clear idea in support of the new users of blogging, that genuinely how to do running a blog. Teresa Moore Emyle
Very good post! We will be linking to this particularly great content on our site. Keep up the great writing. Livvyy Albrecht Brooke
I truly appreciate this article. Thanks Again. Great. Rayshell Davie Nerine
Asking questions are actually pleasant thing if you are not understanding something entirely, however this paragraph offers good understanding even. Ilsa Reg Cardwell
Howdy, I believe your website may be having browser compatibility issues. Robenia Lowrance Santana
1xbet отзывы
info 1xbet com
1xbet com
рабочий домен 1 xbet на сегодня