I am very new to linux routing. Although I understand it conceptually, dịch - I am very new to linux routing. Although I understand it conceptually, Việt làm thế nào để nói

I am very new to linux routing. Alt



I am very new to linux routing. Although I understand it conceptually, the actual route commands escape me. I have tried ip route and ip rule on my own, but they didn't work. Hence posting a question here.

Here's my current setup. Centos server with two NICs

eth0 (external and open to the internet)
- static IP: 192.168.13.10
- GW: 192.168.13.1
eth1 (internal private)
- static IP: 192.168.15.10
- GW: Not defined yet. (as I would imagine 192.168.13.1 to be catch all)

Centos client with one NIC

eth0
- Static IP: 192.168.15.200
- GW: 192.168.15.10

Firstly, I would like the Centos client to be able to connect to the internet only via the Centos Server. I know I am missing some form of routing table entry for the above to work. Could someone point that out for me?

Secondly, I would like the Centos client to acquire the IP address from the Centos server. I have dhcpd installed on the Centos server. So just changing the booproto in the ifcfg-eth0 script (from static to dhcp) be enough or is there any routing changes required on the centos client?
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
I am very new to linux routing. Although I understand it conceptually, the actual route commands escape me. I have tried ip route and ip rule on my own, but they didn't work. Hence posting a question here.Here's my current setup. Centos server with two NICseth0 (external and open to the internet)- static IP: 192.168.13.10- GW: 192.168.13.1eth1 (internal private)- static IP: 192.168.15.10- GW: Not defined yet. (as I would imagine 192.168.13.1 to be catch all)Centos client with one NICeth0- Static IP: 192.168.15.200- GW: 192.168.15.10Firstly, I would like the Centos client to be able to connect to the internet only via the Centos Server. I know I am missing some form of routing table entry for the above to work. Could someone point that out for me?Secondly, I would like the Centos client to acquire the IP address from the Centos server. I have dhcpd installed on the Centos server. So just changing the booproto in the ifcfg-eth0 script (from static to dhcp) be enough or is there any routing changes required on the centos client?
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!


Tôi rất mới để linux định tuyến. Mặc dù tôi hiểu nó về mặt khái niệm, các lệnh tuyến đường thực tế thoát khỏi tôi. Tôi đã cố gắng ip route và ip quy tắc của riêng tôi, nhưng họ đã không làm việc. Do đó đăng một câu hỏi ở đây. Đây là thiết lập hiện tại của tôi. Máy chủ Centos với hai NIC eth0 (bên ngoài và mở cửa cho internet) - IP tĩnh: 192.168.13.10 - GW: 192.168.13.1 eth1 (nội nhân) - IP tĩnh: 192.168.15.10 - GW: Không xác định được nêu ra. (như tôi sẽ tưởng tượng 192.168.13.1 là bắt tất cả) Centos khách hàng với một NIC eth0 - Static IP: 192.168.15.200 - GW: 192.168.15.10 Trước hết, tôi muốn các khách hàng Centos để có thể kết nối với Internet chỉ qua Server Centos. Tôi biết tôi đang thiếu một số hình thức định tuyến vào bảng cho trên để làm việc. Ai đó có thể chỉ ra rằng đối với tôi? Thứ hai, tôi muốn các khách hàng Centos để có được địa chỉ IP từ máy chủ Centos. Tôi đã dhcpd cài đặt trên máy chủ CentOS. Vì vậy, chỉ cần thay đổi booproto trong kịch bản ifcfg-eth0 (từ tĩnh đến DHCP) là đủ hay là có bất kỳ thay đổi định tuyến cần thiết trên máy khách centos?



















đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: