Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
可编程网络自动化
by
Jason Edelman
,
Scott S. Lowe
,
Matt Oswalt
January 2023
Intermediate to advanced
458 pages
14h 16m
Chinese
Posts & Telecom Press
Content preview from
可编程网络自动化
Linux
|
59
怎样,把下面这行代码添加到
/etc/sysctl.conf
中或者添加到
/etc/sysctl.d
的配置文件中。
net.ipv4.ip_forward = 1
要想启用
IPv6
转发,可以添加下面这行代码。
net.ipv6.conf.all.forwarding = 1
接下来,既可以重启
Linux
主机使改动生效,也可以执行
sysctl -p
<path to file with
new setting>
。
单个配置文件还是多个配置文件
?
之前不止一次提过,在某些情况下,
Linux
发行版会使用目录(
/etc/network/interfaces.d
或
/etc/sysctl.d
)中的多个配置文件。哪种方法更好呢?这个问题在
Linux
系统管理员
之间存在一些争议,其实两种方法各有利弊。当你使用配置管理工具时,使用多个配
置文件可能更有优势(这类工具能够帮助管理配置文件及其内容),但无论采用哪种
方法都没问题。
只要启用了
IP
转发,
Linux
系统就可以被当作路由器使用了。这时的
Linux
系统只能执行
静态路由,你需要使用
ip route
命令提供所有必要的路由信息,以便流量能够被正确路由。
不过,
Linux
也有动态路由协议守护进程
,能够让
Linux
路由器参与动态路由协议(比如
BGP
或
OSPF
)。
将
Linux
整合到动态路由环境中的两个流行选择是
Quagga
和
BIRD
。
利用
IPT
able
(或是其继任者
NFTables
)等特性,还可以加入网络地址转换(
Network
Address Translation ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
Python和NLTK实现自然语言处理
Posts & Telecom Press, Nitin Hardeniya
Go程序设计语言
艾伦A. A.多诺万, 布莱恩W. 柯尼汉
弱监督学习实用指南
Wee Hyong Tok, Amit Bahree, Senja Filipi
Python实用技能学习指南
Posts & Telecom Press, Robert Smallshire, Austin Bingham
Publisher Resources
ISBN: 9787115606181